/* ============================================================
   WAJD Group front door, showcase edition v2 (18 Oct 2026)
   Light warm bone page; ONE contained warm-charcoal hero card holds the
   signature object (the exploded operation). Sora + Inter. Amber actions.
   Motion is scroll- and pointer-driven (front.js sets --p, --s, --tx, --ty,
   --mx, --my, --rx, --ry). Nothing runs while the page is idle.
   No inline styles: the site CSP is style-src 'self'.
   ============================================================ */
:root {
  /* Navy and electric blue (18 Oct 2026). Variable names kept from the earlier palette:
     --amber* now hold the electric blue accent, --char* the navy. */
  --bg: #f5f7fb; --bg-2: #eaeef6; --surface: #ffffff; --white: #ffffff;
  --text: #0b1424; --muted: #4a5568; --faint: #7b8aa3; --line: #e2e8f0; --line-2: #cbd5e1;
  --amber: #2563eb; --amber-2: #3b82f6; --amber-deep: #1d4ed8; --amber-ink: #ffffff; --copper: #60a5fa;
  --char: #0a1428; --char-2: #0f1d38; --bone: #eef2f8; --bone-2: #b8c4d6; --bone-3: #7f8ea6;
  --display: "Sora", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --r: 18px; --r-lg: 26px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--muted); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 8px; }
[id] { scroll-margin-top: 84px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--amber-ink); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); border-bottom: 1px solid var(--line);
       -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo strong { font: 700 1.12rem var(--display); color: var(--text); letter-spacing: .06em; }
.logo span { font: 400 .78rem var(--display); color: var(--faint); letter-spacing: .22em; text-transform: uppercase; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; font: 500 .9rem var(--display); }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 .95rem var(--display); text-decoration: none;
       border-radius: 999px; padding: 13px 24px; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-amber, .nav-links a.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: var(--amber-2); transform: translateY(-1px); }
.btn-quiet { border-color: rgba(238, 242, 248, .28); color: var(--bone); }
.btn-quiet:hover { border-color: var(--bone-2); }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.nav .btn { padding: 9px 18px; font-size: .86rem; }

/* ---------- Type helpers ---------- */
.eyebrow { font: 600 .74rem var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 18px; }
.title { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 16em; }
.sub { color: var(--muted); font-size: 1.1rem; margin-top: 18px; max-width: 38em; }
section.band { padding: 120px 0; position: relative; }

/* Typewriter line */
.typeline { font: 500 .95rem/1.4 var(--display); letter-spacing: .03em; color: var(--bone-2); margin-bottom: 22px; white-space: nowrap; min-height: 1.4em; }
.tw .ch { display: none; }
.tw .ch.on { display: inline; }
.tw .cap { color: var(--amber); font-weight: 700; }
.tw.typing::after, .tw.typed::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.18em; background: var(--amber); }
.tw.typed::after { animation: caret 1.8s steps(1) forwards; }
@keyframes caret { 0% { opacity: 1; } 25% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   HERO: contained warm-charcoal card with the exploded operation
   ============================================================ */
.hero { position: relative; height: 185vh; }
.hero-pin { position: sticky; top: 70px; height: calc(100vh - 70px); min-height: 640px; display: flex; align-items: center; padding: 18px 0 26px; }
.hero-card { --mx: 70%; --my: 30%; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--char);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; padding: 56px 0 56px 64px; height: 100%; max-height: 780px;
  box-shadow: 0 40px 80px -40px rgba(10, 20, 40, .55); }
.hero-card::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(37, 99, 235, .2), rgba(37, 99, 235, .07) 45%, transparent 70%); }
.hero-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; border: 1px solid rgba(96, 165, 250, .14); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: 1.02; color: var(--bone); }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--amber-2), var(--copper)); -webkit-background-clip: text; background-clip: text; }
.hero .lede { font-size: 1.12rem; color: var(--bone-2); margin: 24px 0 32px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-hint { margin-top: 38px; display: flex; align-items: center; gap: 12px; font: 500 .78rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); }
.scroll-hint i { display: block; width: 46px; height: 1px; background: linear-gradient(90deg, var(--amber), transparent); }

.stage { --p: 0; --tx: 0; --ty: 0; --s: 1; position: relative; height: 100%; min-height: 460px; perspective: 1700px; perspective-origin: 50% 40%; }
.stack { position: absolute; left: 46%; top: 52%; width: 380px; height: 380px; margin: -190px 0 0 -190px; transform-style: preserve-3d;
  transform: scale(var(--s)) rotateX(calc(58deg + var(--ty) * 1deg)) rotateZ(calc(-40deg + var(--tx) * 1deg)); transition: transform .3s ease-out; }
.plate { position: absolute; inset: 0; border-radius: 32px; transform-style: preserve-3d;
  transform: translate3d(calc(var(--tx) * (var(--i) - 1.5) * 1.6px), calc(var(--ty) * (var(--i) - 1.5) * -1.6px), calc((var(--i) - 1.5) * (22px + var(--p) * 112px)));
  border: 1px solid rgba(96, 165, 250, .24); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .07); }
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate .tag { position: absolute; left: 26px; bottom: 22px; font: 600 15px var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--bone-2); opacity: calc(.35 + var(--p) * .65); }
.plate .tag b { color: var(--amber); font-weight: 700; margin-right: 10px; }
.p-data     { --i: 0; background: radial-gradient(120% 90% at 20% 15%, rgba(52, 45, 38, .97), rgba(28, 24, 20, .97) 70%); }
.p-process  { --i: 1; background: radial-gradient(100% 80% at 75% 25%, rgba(37, 99, 235, .22), transparent 60%), radial-gradient(90% 80% at 15% 85%, rgba(37, 99, 235, .35), transparent 65%), rgba(36, 31, 26, .5); }
.p-decision { --i: 2; background: radial-gradient(110% 90% at 80% 80%, rgba(76, 61, 46, .45), rgba(33, 29, 24, .38) 70%); }
.p-value    { --i: 3; background: linear-gradient(140deg, rgba(96, 165, 250, .18), rgba(37, 99, 235, .05) 45%, rgba(26, 23, 19, .3)), rgba(26, 23, 19, .28); }
.plate .dots circle { fill: #9a8f80; }
/* Each layer draws itself as the stack opens */
.plate .proc-line { stroke: rgba(238, 242, 248, .4); stroke-width: 5; fill: none; stroke-linecap: round;
  stroke-dasharray: 262px; stroke-dashoffset: calc(262px * (1 - clamp(0, (var(--p) - .2) * 2.2, 1))); }
.plate .proc circle { fill: #eef2f8; }
.plate .proc .hot { fill: var(--amber); }
.plate .halo { fill: none; stroke: var(--amber); stroke-width: 3; opacity: clamp(0, calc(var(--p) * 1.6 - .6), 1); }
.plate .gate { fill: none; stroke: var(--bone-2); stroke-width: 4; stroke-linejoin: round; }
.plate .tick { fill: none; stroke: var(--amber); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 110px; stroke-dashoffset: calc(110px * (1 - clamp(0, (var(--p) - .45) * 2.4, 1))); }
.plate .rise { fill: none; stroke: var(--amber-2); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 330px; stroke-dashoffset: calc(330px * (1 - clamp(0, (var(--p) - .55) * 2.4, 1))); }
.plate .rise-fill { fill: rgba(37, 99, 235, .14); opacity: clamp(0, calc((var(--p) - .7) * 3.4), 1); }
.plate .grid line { stroke: rgba(238, 242, 248, .08); stroke-width: 1.5; }
.legend { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); list-style: none; display: flex; flex-direction: column-reverse; gap: 14px; text-align: right; z-index: 1; }
.legend li { font: 500 .76rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-3); transition: color .3s; }
.legend li.on { color: var(--amber); }

/* ============================================================
   Scroll-linked reveals: every [data-scrub] gets --s (0 to 1) from front.js.
   Default 1, so without JS (or with reduced motion) everything is simply there.
   ============================================================ */
[data-scrub] { --s: 1; }
.scrub-on [data-scrub].rise-in { opacity: calc(.15 + var(--s) * .85); transform: translateY(calc((1 - var(--s)) * (36px + var(--k, 0) * 26px))); }
.k1 { --k: 1; } .k2 { --k: 2; } .k3 { --k: 3; }

/* Statement: the words fill as you scroll (--f) */
.statement { padding: 130px 0 60px; }
.statement p.big { --f: 1; font: 700 clamp(2.2rem, 5.6vw, 5rem)/1.06 var(--display); letter-spacing: -.03em; max-width: 15em;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--text) calc(var(--f) * 100%), rgba(11, 20, 36, .14) calc(var(--f) * 100%)); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 64px; }
.why-points { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.why-points li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.why-points li b { font: 600 1rem var(--display); color: var(--text); min-width: 11.5em; }
.usp-fig { background: var(--char); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 30px 60px -36px rgba(10, 20, 40, .5); }
.usp-fig svg { width: 100%; height: auto; display: block; }
.usp-fig text { font: 600 15px var(--display); }
.usp-fig .u-h { font: 600 12px var(--display); letter-spacing: .22em; text-transform: uppercase; fill: var(--amber); }
.m-dots circle { fill: #64748b; }
.m-line { stroke: rgba(238, 242, 248, .28); stroke-width: 5; stroke-linecap: round; fill: none; }
.m-s circle { fill: var(--bone); stroke: #64748b; stroke-width: 4; }
.m-s text { fill: var(--bone-2); text-anchor: middle; }
.m-s.hot circle { fill: var(--amber); stroke: var(--bone); }
.m-call rect { fill: var(--amber); }
.m-call text { fill: var(--amber-ink); text-anchor: middle; font-weight: 700; }

/* ---------- Cards ---------- */
.grid2, .grid3, .grid4 { display: grid; gap: 18px; margin-top: 54px; }
.grid2 { grid-template-columns: repeat(2, 1fr); } .grid3 { grid-template-columns: repeat(3, 1fr); } .grid4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: block; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.card:hover { border-color: var(--line-2); box-shadow: 0 18px 40px -28px rgba(10, 20, 40, .45); }
.card h3 { font-size: 1.22rem; margin: 22px 0 8px; letter-spacing: -.01em; line-height: 1.25; }
.card p { color: var(--muted); font-size: .98rem; }
.tag { font: 600 .72rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--amber-deep); }

/* 3D tilt cards: --rx/--ry/--gx/--gy from the pointer */
.tilt { --rx: 0; --ry: 0; --gx: 50%; --gy: 0%; transform: perspective(900px) rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
  transition: transform .35s ease-out, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--gx) var(--gy), rgba(255, 255, 255, .7), transparent 60%); mix-blend-mode: soft-light; }
.tilt.hot { transition: transform .08s linear, border-color .2s, box-shadow .2s; box-shadow: 0 28px 50px -30px rgba(10, 20, 40, .55); border-color: var(--line-2); }
.tilt.hot::after { opacity: 1; }

/* Icon slabs: the hero's material in miniature */
.slab { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #1e3a6e, #0b1a33 70%);
  box-shadow: inset 0 1px 0 rgba(96, 165, 250, .35), inset 0 -10px 18px rgba(0, 0, 0, .35), 0 5px 0 #050b17, 0 16px 26px -10px rgba(10, 20, 40, .6); }
.slab svg { width: 28px; height: 28px; }
.sector .proof { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.sector .proof a { font: 500 .88rem var(--display); color: var(--text); text-decoration: none; }
.sector .proof a:hover { color: var(--amber-deep); }

/* ---------- Outcomes: before is struck through, after lights up, as you scroll ---------- */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 38px; margin-top: 22px; }
.case-head { display: flex; gap: 24px; align-items: flex-start; }
.case-head h3 { font-size: 1.5rem; margin: 6px 0 8px; }
.case-goal { color: var(--muted); font-size: 1.05rem; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.ba-col { border-radius: 18px; padding: 22px 24px; border: 1px solid var(--line); }
.ba-col h4 { font: 600 .74rem var(--display); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px; }
.ba-col ul { list-style: none; }
.ba-col li { --i: 0; --t: clamp(0, calc(var(--s, 1) * 5.2 - var(--i) - .6), 1); position: relative; padding-left: 24px; margin-bottom: 9px; font-size: .97rem; }
.ba-col li:nth-child(2) { --i: 1; } .ba-col li:nth-child(3) { --i: 2; } .ba-col li:nth-child(4) { --i: 3; }
.ba-col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; }
.before { background: var(--bg-2); color: var(--muted); }
.before h4 { color: var(--faint); }
.before li::before { border: 1.5px dashed var(--faint); }
.before li span { background: linear-gradient(var(--faint), var(--faint)) no-repeat 0 55% / calc(var(--t) * 100%) 1.5px; color: color-mix(in srgb, var(--muted) calc(100% - var(--t) * 40%), var(--bg-2)); }
.after { background: var(--char); border-color: var(--char); color: var(--bone); }
.after h4 { color: var(--amber); }
.after li { opacity: calc(.3 + var(--t) * .7); }
.after li::before { background: var(--amber); transform: scale(calc(.4 + var(--t) * .6)); }
.status { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: .95rem; }
.status b { color: var(--text); font-weight: 600; }
.status a { color: var(--amber-deep); font-weight: 600; }

/* ---------- Consultancy + steps ---------- */
.proofline { margin-top: 34px; padding: 22px 26px; border-radius: var(--r); background: var(--char); color: var(--bone-2); }
.proofline b { color: var(--amber); }
.steps { --s: 1; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; padding-top: 30px; }
.steps::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--s) * 100%); background: linear-gradient(90deg, var(--amber-deep), var(--amber)); }
.step { --i: 0; --t: clamp(0, calc(var(--s) * 4.4 - var(--i)), 1); padding: 0 24px 0 0; opacity: calc(.35 + var(--t) * .65); transform: translateY(calc((1 - var(--t)) * 14px)); }
.step:nth-child(2) { --i: 1; } .step:nth-child(3) { --i: 2; } .step:nth-child(4) { --i: 3; }
.step span { font: 600 .8rem var(--display); color: var(--amber-deep); letter-spacing: .14em; }
.step h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Reading band ---------- */
.paper { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.paper.flush-top { border-top: 0; padding-top: 0; }
.paper .card { background: var(--bg); }
.more { margin-top: 26px; }
.more a { font: 600 .95rem var(--display); color: var(--text); }

/* ---------- About + FAQ ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about .body p { color: var(--muted); font-size: 1.08rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.values .card { padding: 22px; }
.values h3 { margin: 0 0 6px; font-size: 1.02rem; }
.faq { margin-top: 44px; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font: 600 1.08rem var(--display); color: var(--text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-deep); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 46em; }

/* ---------- Contact: the bookend card ---------- */
.contact { padding: 40px 0 110px; }
.contact-card { --mx: 50%; --my: 40%; position: relative; overflow: hidden; text-align: center; background: var(--char); border-radius: var(--r-lg); padding: 110px 28px; }
.contact-card::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx) var(--my), rgba(37, 99, 235, .2), transparent 70%); }
.contact-card .eyebrow { color: var(--amber); position: relative; }
.contact-card .title { color: var(--bone); margin: 0 auto; font-size: clamp(2.3rem, 5.6vw, 4.6rem); max-width: 12em; position: relative; }
.contact-card .sub { color: var(--bone-2); margin: 22px auto 36px; position: relative; }
.contact-card .btn { font-size: 1.05rem; padding: 16px 30px; position: relative; }

footer { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--faint); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav a { text-decoration: none; color: var(--muted); margin-right: 20px; display: inline-block; font-family: var(--display); font-weight: 500; }
footer nav a:hover { color: var(--amber-deep); }

/* ---------- One-time motion for the USP figure ---------- */
.motion-ok [data-motion] svg g, .motion-ok [data-motion] svg circle { transform-box: fill-box; transform-origin: center; }
@keyframes m-pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes m-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes m-draw { to { stroke-dashoffset: 0; } }
@keyframes m-hot { from { fill: #eef2f8; stroke: #64748b; } to { fill: #2563eb; stroke: #eef2f8; } }
.motion-ok .usp .m-dots circle, .motion-ok .usp .m-s, .motion-ok .usp .m-call, .motion-ok .usp .m-pt { opacity: 0; }
.motion-ok .usp .m-line { stroke-dasharray: 400; stroke-dashoffset: 400; }
.motion-ok .usp .m-s.hot circle { fill: var(--bone); stroke: #64748b; }
.motion-ok .usp.play .m-dots circle { animation: m-pop .4s ease-out forwards; }
.motion-ok .usp.play .m-dots circle:nth-child(2n) { animation-delay: .25s; } .motion-ok .usp.play .m-dots circle:nth-child(3n) { animation-delay: .5s; }
.motion-ok .usp.play .m-dots circle:nth-child(5n) { animation-delay: .75s; }
.motion-ok .usp.play .m-line { animation: m-draw 1s ease-in-out 1.1s forwards; }
.motion-ok .usp.play .m-s { animation: m-pop .45s ease-out forwards; }
.motion-ok .usp.play .m-s.s1 { animation-delay: 1.3s; } .motion-ok .usp.play .m-s.s2 { animation-delay: 1.55s; }
.motion-ok .usp.play .m-s.s3 { animation-delay: 1.8s; }  .motion-ok .usp.play .m-s.s4 { animation-delay: 2.05s; }
.motion-ok .usp.play .m-s.s5 { animation-delay: 2.3s; }
.motion-ok .usp.play .m-s.hot circle { animation: m-hot .5s ease-out 2.8s forwards; }
.motion-ok .usp.play .m-call { animation: m-pop .55s ease-out 3.1s forwards; }
.motion-ok .usp.play .m-pt { animation: m-rise .5s ease-out forwards; }
.motion-ok .usp.play .m-pt:nth-child(2) { animation-delay: .25s; } .motion-ok .usp.play .m-pt:nth-child(3) { animation-delay: .5s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .grid4 { grid-template-columns: 1fr 1fr; } .legend { display: none; } }
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  section.band { padding: 84px 0; }
  .hero { height: auto; }
  .hero-pin { position: relative; top: 0; height: auto; min-height: 0; padding: 16px 0 10px; display: block; }
  .hero-card { grid-template-columns: 1fr; padding: 40px 26px 10px; height: auto; max-height: none; gap: 0; }
  .stage { min-height: 0; height: 500px; --s: .72; }
  .why-grid, .about { grid-template-columns: 1fr; gap: 28px; }
  .grid2, .grid3, .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .ba { grid-template-columns: 1fr; }
  .statement { padding: 90px 0 40px; }
  .why-points li { flex-direction: column; gap: 4px; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid4, .steps { grid-template-columns: 1fr; }
  .hero-card { padding: 34px 20px 0; border-radius: 26px; }
  .stage { height: 420px; --s: .56; }
  .card, .case { padding: 24px; }
  .case-head { flex-direction: column; gap: 16px; }
  .cta-row .btn { width: 100%; }
  .logo span { display: none; }
  .contact-card { padding: 80px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack, .tilt { transition: none; }
  .hero { height: auto; }
  .hero-pin { position: relative; top: 0; height: auto; }
}
/* Cards that both rise on scroll and tilt under the pointer combine both transforms */
.scrub-on [data-scrub].rise-in.tilt { transform: perspective(900px) translateY(calc((1 - var(--s)) * (36px + var(--k, 0) * 26px))) rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg)); }

/* ---------- Film: the 16 second intro, a small box that plays only when pressed ---------- */
section.band.film { padding: 36px 0 0; }
.film-grid { display: flex; align-items: center; gap: 32px; max-width: 820px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; }
.film-grid .title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.film-grid .sub { font-size: 1rem; margin-top: 10px; }
.film-card { position: relative; margin: 0; flex: none; width: 260px; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden;
  background: var(--char); box-shadow: 0 20px 40px -24px rgba(10, 20, 40, .6); order: -1; }
.film-card video { width: 100%; height: 100%; display: block; object-fit: cover; }
.film-play { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 9px; border: 0; border-radius: 999px; cursor: pointer; background: var(--amber); color: var(--amber-ink);
  font: 600 .85rem var(--display); white-space: nowrap; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6); transition: background .2s; }
.film-play:hover { background: var(--amber-2); }
.film-play svg { width: 22px; height: 22px; background: var(--amber-ink); color: var(--amber); border-radius: 50%; padding: 5px 4px 5px 6px; }
.film-card.playing .film-play { display: none; }
@media (max-width: 640px) { .film-grid { flex-direction: column; align-items: flex-start; gap: 18px; } .film-card { width: 100%; max-width: 300px; } }


/* ============================================================
   HERO 2: navy band, the 3D wireframe pump set, health chips, and the
   "Where to start" carousel. Everything draws once on load, then holds still.
   ============================================================ */
.hero2 { position: relative; background: radial-gradient(900px 600px at 72% 38%, #123370 0%, rgba(18, 51, 112, 0) 70%), linear-gradient(180deg, #0a1428, #08101f);
  color: var(--bone); overflow: hidden; padding: 64px 0 38px; }
.hero2-grid { display: grid; grid-template-columns: .95fr 1.15fr; gap: 24px; align-items: center; }
.hero2 h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.04; color: #fff; letter-spacing: -.03em; }
.hero2 .lede { font-size: 1.12rem; color: var(--bone-2); margin: 22px 0 30px; max-width: 32em; }
.hero2 .typeline { color: var(--bone-2); }
.hero2 .tw .cap { color: #60a5fa; }
.hero2 .tw.typing::after, .hero2 .tw.typed::after { background: #60a5fa; }
.hero2 .btn-amber { border-radius: 10px; }
.hero2 .btn-quiet { border-radius: 10px; border-color: rgba(255, 255, 255, .5); color: #fff; }
.machine-wrap { position: relative; }
.machine { width: 100%; height: auto; display: block; overflow: visible; }
.wf path { fill: none; stroke-width: 1.15; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.wf-structure path { stroke: #33507f; }
.wf-mechanical path { stroke: #22c55e; }
.wf-process path { stroke: #3b82f6; }
.wf-electrical path { stroke: #f97316; }
.sensor .dot { stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; }
.sensor .halo { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.s-mechanical .dot { fill: #22c55e; } .s-mechanical .halo { stroke: #22c55e; } .s-structure .dot { fill: #94a3b8; }
.s-process .dot { fill: #3b82f6; } .s-process .halo { stroke: #3b82f6; }
.s-electrical .dot { fill: #f97316; } .s-electrical .halo { stroke: #f97316; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #0b1424; font: 600 .9rem var(--display); white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); transform: translate(-50%, -50%); }
.chip .ci { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.chip .ci svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip em { font-style: normal; font-weight: 700; }
.k-mechanical .ci { background: #16a34a; } .k-process .ci { background: #2563eb; } .k-electrical .ci { background: #ea580c; } .chip em { color: #15803d; }
.illus { position: absolute; right: 4px; bottom: -6px; font: 500 .7rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgba(184, 196, 214, .45); }

/* one-time draw-on, then still */
.mslide.on .wf path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wf-draw 1.7s cubic-bezier(.4, .1, .2, 1) forwards; }
.mslide.on .wf-structure path { animation-delay: .05s; } .mslide.on .wf-process path { animation-delay: .35s; }
.mslide.on .wf-mechanical path { animation-delay: .65s; } .mslide.on .wf-electrical path { animation-delay: .95s; }
@keyframes wf-draw { to { stroke-dashoffset: 0; } }
.mslide.on .sensor .dot { opacity: 0; animation: chip-in .4s ease-out 2.1s forwards; }
.mslide.on .sensor .halo { animation: halo 1.4s ease-out 2.3s 3; }
@keyframes halo { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.2); } }
.mslide.on .chip { opacity: 0; animation: chip-pop .5s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.mslide.on .chip:nth-of-type(1) { animation-delay: 2.4s; } .mslide.on .chip:nth-of-type(2) { animation-delay: 2.7s; } .mslide.on .chip:nth-of-type(3) { animation-delay: 3s; }
@keyframes chip-in { to { opacity: 1; } }
@keyframes chip-pop { from { opacity: 0; transform: translate(-50%, -30%) scale(.85); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* Where to start: a scrollable row with arrows */
.starts-wrap { margin-top: 30px; }
.starts-h { text-align: center; font: 600 1.05rem var(--display); color: var(--bone); margin-bottom: 16px; }
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none; flex: 1; }
.track::-webkit-scrollbar { display: none; }
.start { flex: 0 0 168px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 22px 14px 18px; border-radius: 12px; text-decoration: none; color: #fff; font: 500 .95rem/1.3 var(--display);
  background: linear-gradient(180deg, rgba(30, 58, 110, .55), rgba(15, 29, 56, .7)); border: 1px solid rgba(96, 165, 250, .22); transition: border-color .2s, transform .2s; }
.start:hover { border-color: rgba(96, 165, 250, .7); transform: translateY(-2px); }
.start svg { width: 26px; height: 26px; fill: none; stroke: #93c5fd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.car-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.car-btn:hover { background: rgba(255, 255, 255, .14); }
.nav-links a.btn-amber { border-radius: 10px; }
@media (max-width: 900px) {
  .hero2 { padding: 40px 0 28px; }
  .hero2-grid { grid-template-columns: 1fr; }
  .machine-wrap { margin-top: 10px; }
  .chip { font-size: .78rem; padding: 5px 10px 5px 6px; }
  .chip .ci { width: 20px; height: 20px; }
  .car-btn { display: none; }
  .start { flex-basis: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .mslide.on .wf path { animation: none; stroke-dashoffset: 0; }
  .mslide.on .sensor .dot, .mslide.on .chip { animation: none; opacity: 1; }
  .mslide.on .sensor .halo { animation: none; }
  .zoom .flow .pkt { animation: none; }
}
/* refinements: two-line headline on desktop, a larger machine, chips that fit on phones */
.hero2 h1 { font-size: clamp(2.2rem, 3.7vw, 3.5rem); }
@media (min-width: 901px) { .hero2-grid { grid-template-columns: .85fr 1.25fr; } .machine-wrap { margin-right: -40px; } }
@media (max-width: 600px) {
  .chip.c-heat { display: none; }
    }
.chip.ch-pump-0 { left: 36.7%; top: 40.4%; }
.chip.ch-pump-1 { left: 50.7%; top: 45.7%; }
.chip.ch-pump-2 { left: 82.0%; top: 36.3%; }
.chip.ch-boiler-0 { left: 51.7%; top: 25.5%; }
.chip.ch-boiler-1 { left: 69.1%; top: 6.0%; }
.chip.ch-boiler-2 { left: 38.4%; top: 7.0%; }
.chip.ch-sphere-0 { left: 18.3%; top: 23.3%; }
.chip.ch-sphere-1 { left: 46.9%; top: 6.0%; }
.chip.ch-sphere-2 { left: 82.0%; top: 35.0%; }
.chip.ch-silos-0 { left: 31.8%; top: 33.2%; }
.chip.ch-silos-1 { left: 41.4%; top: 7.3%; }
.chip.ch-silos-2 { left: 82.0%; top: 67.7%; }

/* ── Machine carousel ── */
.mstage { position: relative; cursor: zoom-in; border-radius: 16px; outline-offset: 6px; }
.mslide { position: relative; margin: 0; aspect-ratio: 1.3 / 1; display: grid; place-items: center; }
.mslide[hidden] { display: none; }
.mslide .machine { width: 100%; height: 100%; }
.mbar { display: flex; align-items: center; gap: 12px; margin-top: 6px; color: var(--bone-2); font: 500 .9rem var(--display); }
.mname { min-width: 8.5em; color: #fff; font-weight: 600; }
.mdots { display: flex; gap: 7px; flex: 1; }
.mdot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .25); cursor: pointer; }
.mdot.on { background: #3b82f6; width: 22px; border-radius: 5px; }
.mnav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.mnav:hover { background: rgba(255, 255, 255, .14); }
.mzoom { border: 1px solid rgba(96, 165, 250, .5); background: transparent; color: #93c5fd; border-radius: 8px; padding: 7px 12px; font: 600 .82rem var(--display); cursor: pointer; }
.mzoom:hover { background: rgba(59, 130, 246, .15); }
.machine-wrap .illus { bottom: 44px; }

/* ── Zoom: sensors stream to a live dashboard ── */
.zoom { width: min(1180px, 95vw); max-height: 92vh; border: 1px solid rgba(96, 165, 250, .3); border-radius: 22px; padding: 26px; background: linear-gradient(180deg, #0c1a33, #08101f); color: var(--bone); overflow: auto; }
.zoom::backdrop { background: rgba(4, 9, 20, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zclose { position: absolute; right: 16px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 3; }
.zbody { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center; }
.zart { position: relative; }
.zart .mslide { aspect-ratio: 1.15 / 1; }
.zart .mslide .chip { display: none; }
.zart .sensor .dot { opacity: 1; r: 9; }
.zart .sensor .halo { opacity: .7; }
.flows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.flow .line { fill: none; stroke-width: 1.4; opacity: .35; }
.flow .pkt { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .03 .97; stroke-dashoffset: 1; animation: pkt 1.6s linear 6 forwards; }
.flow.k-mechanical .line, .flow.k-mechanical .pkt { stroke: #22c55e; }
.flow.k-process .line, .flow.k-process .pkt { stroke: #3b82f6; }
.flow.k-electrical .line, .flow.k-electrical .pkt { stroke: #f97316; }
.flow:nth-child(2) .pkt { animation-delay: .35s; } .flow:nth-child(3) .pkt { animation-delay: .7s; }
@keyframes pkt { to { stroke-dashoffset: 0; } }
.dash { background: rgba(255, 255, 255, .04); border: 1px solid rgba(96, 165, 250, .22); border-radius: 16px; padding: 18px; }
.dash h3 { color: #fff; font-size: 1.3rem; margin: 2px 0 4px; }
.dash .eyebrow { color: #60a5fa; margin-bottom: 6px; }
.dash .zdesc { color: var(--bone-2); font-size: .92rem; margin-bottom: 14px; }
.dscore { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(59, 130, 246, .12); margin-bottom: 10px; }
.dscore b { font: 700 2rem var(--display); color: #fff; } .dscore span { color: var(--bone-2); font-size: .85rem; }
.drow { display: grid; grid-template-columns: 1fr auto 86px; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); margin-bottom: 7px; opacity: 0; animation: drow .4s ease-out forwards; }
.drow:nth-child(1) { animation-delay: 1s; } .drow:nth-child(2) { animation-delay: 1.4s; } .drow:nth-child(3) { animation-delay: 1.8s; }
@keyframes drow { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.drow b { font: 600 .9rem var(--display); color: #fff; display: flex; align-items: center; gap: 8px; }
.drow b i { width: 9px; height: 9px; border-radius: 50%; }
.drow.k-mechanical b i { background: #22c55e; } .drow.k-process b i { background: #3b82f6; } .drow.k-electrical b i { background: #f97316; }
.drow em { font-style: normal; font: 700 .95rem var(--display); color: #4ade80; }
.drow svg { width: 86px; height: 26px; }
.drow polyline { fill: none; stroke: #93c5fd; stroke-width: 1.6; stroke-linejoin: round; }
.insight { margin-top: 12px; padding: 12px 14px; border-left: 3px solid #3b82f6; border-radius: 0 10px 10px 0; background: rgba(59, 130, 246, .1); color: #e2e8f0; font-size: .92rem; opacity: 0; animation: drow .5s ease-out 2.6s forwards; }
.insight b { color: #93c5fd; display: block; font: 600 .74rem var(--display); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
.dash .btn { margin-top: 14px; border-radius: 10px; }
.zillus { margin-top: 10px; font: 500 .7rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgba(184, 196, 214, .45); }
@media (max-width: 900px) { .zbody { grid-template-columns: 1fr; gap: 18px; } .mzoom { display: none; } .mname { min-width: 0; } }
/* every machine fits the same frame, so the hero never jumps between slides */
.mslide { aspect-ratio: auto; height: clamp(320px, 42vw, 540px); }
.mslide .machine { width: 100%; height: 100%; }
.zart .mslide { height: clamp(300px, 52vh, 560px); }
@media (max-width: 900px) { .mslide { height: 340px; } .zart .mslide { height: 300px; } }
/* keep the drawing inside its frame so it never sits over the carousel controls */
.mslide .machine { overflow: hidden; }
.mstage { overflow: hidden; }
.mbar { position: relative; z-index: 3; }
.zbody > * { min-width: 0; }
@media (max-width: 600px) { .zoom { padding: 16px; width: 96vw; } .dash { padding: 14px; } .drow { grid-template-columns: 1fr auto 64px; } .drow svg { width: 64px; } }
.zoom { overflow-x: hidden; }

/* ── Hero film: autoplays muted once, holds on the logo, pauses out of view ── */
.hero-film { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: end; border-radius: 22px; overflow: hidden;
  background: #0a1428; border: 1px solid rgba(96, 165, 250, .22); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.hero-film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 10px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--amber); color: #fff; font: 600 .9rem var(--display); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); }
.hf-btn:hover { background: var(--amber-deep); }
.hf-btn svg { width: 22px; height: 22px; background: #fff; color: var(--amber); border-radius: 50%; padding: 5px 4px 5px 6px; }
.hf-btn[hidden] { display: none; }

/* ── Sensors on every asset: the machine carousel in its own navy band ── */
.assets-band { background: linear-gradient(180deg, #08101f, #0a1428 40%, #0c1a33); color: var(--bone); padding: 90px 0; }
.assets-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.assets-band .title { color: #fff; }
.assets-band .eyebrow { color: #60a5fa; }
.assets-band .sub { color: var(--bone-2); }
.assets-hint { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font: 500 .82rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #93c5fd; }
.assets-hint::before { content: ""; width: 30px; height: 1px; background: #60a5fa; }
@media (max-width: 900px) { .assets-grid { grid-template-columns: 1fr; gap: 22px; } .assets-band { padding: 64px 0; } .hero-film { justify-self: stretch; max-width: none; } }
/* hero with the film: give the headline more room */
@media (min-width: 901px) { .hero2-grid { grid-template-columns: 1.1fr .9fr; } .hero2 h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); } }
/* auto-advance progress: the active dot fills over the 6.5 s interval */
.mdot { position: relative; overflow: hidden; }
.machine-wrap.auto .mdot.on::after { content: ""; position: absolute; inset: 0; background: #93c5fd; transform-origin: left; transform: scaleX(0); animation: mfill 6.5s linear forwards; }
@keyframes mfill { to { transform: scaleX(1); } }

/* ── Where to start: data tiles, stepping along on their own ── */
.starts-h small { margin-left: 10px; font: 500 .66rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(184, 196, 214, .5); }
.start2 { flex: 0 0 290px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(180deg, rgba(30, 58, 110, .5), rgba(15, 29, 56, .75)); border: 1px solid rgba(96, 165, 250, .22); transition: border-color .2s, transform .2s; }
.start2:hover { border-color: rgba(96, 165, 250, .7); transform: translateY(-2px); }
.start2 .viz { background: rgba(5, 11, 24, .55); border: 1px solid rgba(148, 163, 184, .12); border-radius: 10px; padding: 6px; margin-bottom: 6px; }
.start2 .viz svg { width: 100%; height: auto; display: block; font-family: var(--display); }
.start2 b { font: 600 1rem var(--display); color: #fff; }
.start2 span { font-size: .86rem; line-height: 1.45; color: var(--bone-2); }
@media (max-width: 900px) { .start2 { flex-basis: 250px; } }

/* ---------- Platform vision (26 Oct 2026): sources -> WAJD Industrial Intelligence -> outcomes ----------
   Pick an outcome: the sources and core capabilities it draws on light up and front.js draws the wires.
   Wires flow three times on a pick, then rest. Nothing moves while idle. */
.platform-band { background: linear-gradient(180deg, #0c1a33, #0a1428 45%, #08101f); color: var(--bone); }
.platform-band .title { color: #fff; }
.platform-band .eyebrow { color: #60a5fa; }
.platform-band .sub { color: var(--bone-2); }
.pf { position: relative; margin-top: 56px; display: grid; row-gap: 64px; }
.pf-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.pf-wires path { fill: none; stroke: rgba(96, 165, 250, .55); stroke-width: 1.6; stroke-linecap: round; }
.pf-wires path.up { stroke: #3b82f6; stroke-width: 2; }
.pf-wires path.live { stroke-dasharray: 5 9; animation: pfFlow 1.1s linear 3; }
@keyframes pfFlow { to { stroke-dashoffset: -28; } }
.pf-tier, .pf-core { position: relative; z-index: 1; }
.pf-tier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.pf-tier::before, .pf-core::before { position: absolute; top: -26px; left: 0; font: 600 .66rem var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); }
.pf-tier::before { content: attr(aria-label); }
.pf-core::before { content: "The platform"; }
.pf-ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .22); transition: background .25s, border-color .25s; }
.pf-ic svg { width: 22px; height: 22px; fill: none; stroke: #93c5fd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pf-o, .pf-s { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border-radius: 14px; font: 600 .84rem/1.3 var(--display); color: var(--bone-2); transition: border-color .25s, background .25s, color .25s, opacity .25s; }
.pf-o { background: rgba(15, 29, 56, .7); border: 1px solid rgba(148, 163, 184, .16); padding: 16px 8px 14px; cursor: pointer; }
.pf-o:hover { border-color: rgba(96, 165, 250, .5); color: #fff; }
.pf-o.on { background: rgba(37, 99, 235, .18); border-color: #3b82f6; color: #fff; }
.pf-o.on .pf-ic { background: #2563eb; border-color: #3b82f6; }
.pf-o.on .pf-ic svg { stroke: #fff; }
.pf-o:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
.pf-s { padding: 12px 6px; border: 1px dashed rgba(148, 163, 184, .22); background: rgba(8, 16, 31, .6); opacity: .5; }
.pf-s.on { opacity: 1; border-style: solid; border-color: rgba(96, 165, 250, .6); color: #fff; }
.pf-s .pf-ic { width: 38px; height: 38px; }
.pf-s .pf-ic svg { width: 19px; height: 19px; }
.pf-core { background: #050b17; border: 1px solid rgba(96, 165, 250, .28); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 30px 70px -40px rgba(37, 99, 235, .55); }
.pf-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; text-align: left; }
.pf-brand img { width: 40px; height: 40px; }
.pf-brand strong { display: block; font: 700 1.3rem var(--display); color: #fff; letter-spacing: -.01em; }
.pf-brand span { font-size: .84rem; color: var(--bone-3); }
.pf-blocks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pf-c { background: #0f1d38; border: 1px solid rgba(148, 163, 184, .14); border-radius: 12px; padding: 16px 14px; opacity: .55; transition: opacity .25s, border-color .25s, background .25s; }
.pf-c b { display: block; font: 700 .95rem/1.25 var(--display); color: #fff; margin-bottom: 6px; }
.pf-c span { font-size: .84rem; line-height: 1.5; color: var(--bone-2); }
.pf-c.on { opacity: 1; border-color: #3b82f6; background: linear-gradient(180deg, rgba(37, 99, 235, .22), #0f1d38); }
.pf-views { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .82rem; color: var(--bone-2); }
.pf-views b { font: 600 .7rem var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-3); margin-right: 6px; }
.pf-views span { border: 1px solid rgba(148, 163, 184, .2); border-radius: 999px; padding: 4px 12px; }
.pf-detail { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; margin-top: 40px; background: rgba(15, 29, 56, .7); border: 1px solid rgba(148, 163, 184, .16); border-radius: var(--r); padding: 26px 28px; }
.pf-detail h3 { color: #fff; font-size: 1.4rem; }
.pf-dk { font: 600 .68rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: #60a5fa; margin-bottom: 8px; }
.pf-uses { margin-top: 12px; font-size: .88rem; color: var(--bone-2); display: grid; gap: 6px; }
.pf-uses b { font: 600 .66rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); margin-right: 10px; }
.pf-insight { border-left: 3px solid #3b82f6; padding-left: 20px; }
.pf-insight p#pfI { color: #fff; font-size: 1.05rem; line-height: 1.55; }
.pf-illus { margin-top: 10px; font-size: .74rem; color: var(--bone-3); }
.pf-principles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.pf-principles li { font-size: .92rem; color: var(--bone-2); border-top: 1px solid rgba(148, 163, 184, .2); padding-top: 16px; }
.pf-principles b { display: block; font: 700 1rem var(--display); color: #fff; margin-bottom: 4px; }
@media (max-width: 1100px) { .pf-o, .pf-s { font-size: .76rem; } .pf-c span { font-size: .8rem; } }
@media (max-width: 900px) {
  .pf { row-gap: 46px; }
  .pf-wires { display: none; }
  .pf-tier { grid-template-columns: repeat(2, 1fr); }
  .pf-o { flex-direction: row; text-align: left; padding: 10px 12px; }
  .pf-o .pf-ic { width: 34px; height: 34px; flex: none; }
  .pf-o .pf-ic svg { width: 18px; height: 18px; }
  .pf-out .pf-o:last-child { grid-column: 1 / -1; }
  .pf-src { grid-template-columns: repeat(4, 1fr); }
  .pf-blocks { grid-template-columns: 1fr; }
  .pf-core { padding: 20px 16px; }
  .pf-brand { justify-content: flex-start; }
  .pf-detail, .pf-principles { grid-template-columns: 1fr; }
  .pf-detail { padding: 22px 20px; }
}
@media (max-width: 560px) {
  .pf-src { grid-template-columns: repeat(3, 1fr); }
  .pf-s { font-size: .7rem; }
  .pf-src .pf-s:last-child { grid-column: 1 / -1; }
  .pf-o { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .pf-wires path.live { animation: none; stroke-dasharray: none; } }
/* Nav gained "Platform" (26 Oct): keep link labels on one line at mid widths. */
.nav-links a { white-space: nowrap; }
@media (max-width: 1180px) { .nav-links { gap: 18px; font-size: .84rem; } }
@media (max-width: 1040px) { .nav-links a[href="#why"], .nav-links a[href="#signals"] { display: none; } }
