/* =========================================================
   INTEELLI — Software, considered.
   Palette (from the logo system):
   ink #211a3d · paper #f6f3ee · violet #6b5ce8 · coral #ff8a6b
   ========================================================= */

:root{
  --ink:#211a3d;
  --ink-2:#1a1533;
  --ink-3:#140f29;
  --paper:#f6f3ee;
  --paper-70:rgba(246,243,238,.70);
  --paper-55:rgba(246,243,238,.55);
  --paper-40:rgba(246,243,238,.40);
  --violet:#6b5ce8;
  --violet-soft:#b9b0ff;
  --coral:#ff8a6b;
  --line:rgba(246,243,238,.12);
  --line-2:rgba(246,243,238,.07);

  --serif:'Newsreader', 'Fraunces', 'Iowan Old Style', Georgia, serif;   /* Newsreader is loaded with just the letter f */
  --sans:'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --read:'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;  /* body copy below the hero */
  --arabic:'Reem Kufi', 'Segoe UI', sans-serif;
  --text:rgba(246,243,238,.82);      /* paragraph text below the hero: higher contrast */
  --text-soft:rgba(246,243,238,.66);

  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  --spring:cubic-bezier(.34,1.56,.64,1);

  --gutter:clamp(16px, 4vw, 40px);
  --maxw:1440px;   /* same page width as Image Guard (owner, 26 Nov: too much space left and right) */
  --radius:28px;
  --sec:clamp(40px, 4.8vw, 64px);   /* the one gap between any two sections (tightened 26 Nov to match Image Guard) */
  --gap:16px;                       /* the one gap between any two tiles */
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  background:var(--ink);
  color:var(--paper);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
/* fine film grain — gives the dark surfaces a tactile, printed feel */
body::after{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:100;
  opacity:.035;   /* no blend mode: the grain costs nothing while scrolling */
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection{ background:var(--violet); color:var(--paper); }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
img,svg{ display:block; }
:focus-visible{ outline:2px solid var(--coral); outline-offset:3px; border-radius:8px; }

.sr-only,.sr-defs{ position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip{ position:fixed; left:16px; top:-60px; z-index:200; background:var(--paper); color:var(--ink); padding:10px 16px; border-radius:999px; font-weight:600; transition:top .3s var(--ease-out); }
.skip:focus{ top:16px; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }

.eyebrow{
  font-size:12px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--coral); font-weight:600; margin-bottom:12px;
}
.display{
  font-family:var(--serif); font-weight:500;
  font-size:clamp(28px, 3.8vw, 48px);
  line-height:1.06; letter-spacing:-.012em;
  font-variation-settings:"opsz" 60;   /* sturdier strokes than the hairline display cut */
  max-width:24ch;
}
/* everything below the hero reads in Inter */
.disciplines, .collection, .arch, .security, .contact, .footer{ font-family:var(--read); font-feature-settings:"cv11","ss01"; }
/* long words (German, Dutch, Russian…) wrap cleanly instead of overflowing on narrow screens */
h1, h2, h3, p, li, .tag{ overflow-wrap:break-word; hyphens:auto; }
.disciplines .eyebrow, .collection .eyebrow, .arch .eyebrow, .security .eyebrow, .contact .eyebrow{ font-size:13px; letter-spacing:.14em; }
.display--xl{ font-size:clamp(32px, 4.4vw, 58px); max-width:16ch; }

/* ---------- reveal system ---------- */
.reveal{ opacity:0; transform:translate3d(0,16px,0); transition:opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay:var(--d,0ms); }   /* quick, like Image Guard (owner: lower sections felt slow) */
.reveal.is-in{ opacity:1; transform:none; }
/* sections off screen: their looping animations wait (main.js adds .is-off) */
.is-off, .is-off *, .is-off *::before, .is-off *::after{ animation-play-state:paused!important; }
.hero .reveal{ transition-duration:.45s; }   /* the first screen comes in quickly; the rest of the page keeps the slower reveal */

.split .w{ display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.08em; margin-bottom:-.08em; }
.split .w > span{ display:inline-block; transform:translate3d(0,105%,0) rotate(4deg); transform-origin:0 100%; transition:transform .6s var(--ease-out); transition-delay:calc(var(--i,0) * 25ms); }
.split.is-in .w > span{ transform:none; }

/* ---------- buttons ---------- */
.btn{
  position:relative; isolation:isolate; overflow:hidden;
  display:inline-flex; align-items:center; gap:10px;
  height:52px; padding:0 26px; border-radius:999px;
  font-weight:600; font-size:15px; letter-spacing:.01em;
  transition:transform .5s var(--ease-out), background-color .4s, color .4s, border-color .4s;
  will-change:transform;
}
.btn span{ position:relative; z-index:1; }
.btn svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .5s var(--ease-out); position:relative; z-index:1; }
.btn:hover svg{ transform:translateX(4px); }
.btn::before{
  content:""; position:absolute; z-index:0; left:var(--bx,50%); top:var(--by,50%);
  width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%;
  background:var(--violet); transform:scale(0); transition:transform .7s var(--ease-out);
}
.btn:hover::before{ transform:scale(40); }
.btn--primary{ background:var(--paper); color:var(--ink); }
.btn--primary:hover{ color:var(--paper); }
.btn--ghost{ border:1px solid var(--line); color:var(--paper); }
.btn--ghost:hover{ border-color:transparent; }
.btn--block{ width:100%; justify-content:center; }

/* =========================================================
   NAV
   ========================================================= */
.nav{ position:fixed; inset:0 0 auto 0; z-index:50; transition:background-color .5s, border-color .5s, backdrop-filter .5s; border-bottom:1px solid transparent; }
.nav.is-scrolled{ background:rgba(33,26,61,.8); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);   /* lighter glass: cheaper on every scroll frame */ border-bottom-color:var(--line-2); }
.nav__inner{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); height:68px; display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand__n{ width:30px; height:26px; fill:none; stroke:var(--paper); stroke-width:13; stroke-linecap:round; stroke-linejoin:round; }
.brand__n path{ stroke-dasharray:240; stroke-dashoffset:0; }
.brand:hover .brand__n path{ animation:redraw 1s var(--ease-io); }
.brand:hover .brand__n{ stroke:var(--violet); transition:stroke .4s; }
@keyframes redraw{ from{ stroke-dashoffset:240; } to{ stroke-dashoffset:0; } }
.brand__word{ height:22px; width:auto; aspect-ratio:374/100; }
.nav__links{ display:flex; align-items:center; gap:34px; font-size:14px; }
.nav__links a{ color:var(--paper-70); position:relative; transition:color .3s; }
.nav__links a:not(.nav__cta)::after{ content:""; position:absolute; left:0; right:0; bottom:-6px; height:1.5px; background:var(--coral); transform:scaleX(0); transform-origin:right; transition:transform .5s var(--ease-out); }
.nav__links a:not(.nav__cta):hover{ color:var(--paper); }
.nav__links a:not(.nav__cta):hover::after{ transform:scaleX(1); transform-origin:left; }
.nav__links a.is-current:not(.nav__cta){ color:var(--paper); }
.nav__links a.is-current:not(.nav__cta)::after{ transform:scaleX(1); }
.nav__progress{ position:absolute; inset-inline:0; bottom:-1px; height:2px; pointer-events:none; background:linear-gradient(90deg, var(--violet), var(--coral)); transform:scaleX(var(--sp, 0)); transform-origin:left; }
[dir="rtl"] .nav__progress{ transform-origin:right; background:linear-gradient(270deg, var(--violet), var(--coral)); }
.nav__cta{ color:var(--ink)!important; background:var(--paper); padding:9px 18px; border-radius:999px; font-weight:600; transition:background-color .3s, transform .5s var(--ease-out)!important; }
.nav__cta:hover{ background:var(--coral); }
.nav__toggle{ display:none; width:44px; height:44px; position:relative; }
.nav__toggle span{ position:absolute; left:12px; right:12px; height:1.5px; background:var(--paper); transition:transform .5s var(--ease-out), top .5s var(--ease-out); }
.nav__toggle span:first-child{ top:18px; } .nav__toggle span:last-child{ top:25px; }
.nav.is-open .nav__toggle span:first-child{ top:21.5px; transform:rotate(45deg); }
.nav.is-open .nav__toggle span:last-child{ top:21.5px; transform:rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
/* compact: the hero ends just under the buttons, on a glowing horizon line (drawn in the canvas) */
.hero{ position:relative; display:grid; place-items:center; overflow:hidden; padding:94px 0 clamp(38px, 4.4vw, 60px);
  background:radial-gradient(70% 95% at 50% 100%, rgba(107,92,232,.30), transparent 70%), var(--ink);
}
/* two slow lights drifting behind everything (moved by the graphics chip only, so they cost nothing) */
.hero::before, .hero::after{ content:""; position:absolute; pointer-events:none; border-radius:50%; will-change:transform; }
.hero::before{ width:min(62vw, 820px); aspect-ratio:1; left:4%; top:-38%; background:radial-gradient(closest-side, rgba(107,92,232,.30), transparent); animation:drift1 23s var(--ease-io) infinite alternate; }
.hero::after{ width:min(48vw, 640px); aspect-ratio:1; right:2%; bottom:-48%; background:radial-gradient(closest-side, rgba(255,138,107,.14), transparent); animation:drift2 29s var(--ease-io) infinite alternate; }
@keyframes drift1{ to{ transform:translate3d(24vw, 14%, 0) scale(1.15); } }
@keyframes drift2{ to{ transform:translate3d(-28vw, -16%, 0) scale(.88); } }
.loom{ position:absolute; z-index:1; inset:0; width:100%; height:100%; opacity:0; animation:fadeIn 1.4s .25s forwards; }   /* above the drifting lights, so the ink below the horizon covers them */
/* --p (0 → 1) is set while scrolling: the wordmark sinks back and fades as the page takes over */
.hero__inner{ position:relative; z-index:2; text-align:center; padding:0 var(--gutter); display:flex; flex-direction:column; align-items:center;
  transform:translate3d(0, calc(var(--p, 0) * 70px), 0) scale(calc(1 - var(--p, 0) * .06)); opacity:calc(1 - var(--p, 0) * 1.2); }
.hero .eyebrow{ --d:100ms; color:var(--paper-55); letter-spacing:.24em; margin-bottom:14px; }
.hero__mark{ width:min(600px, 84vw); height:auto; overflow:visible; filter:drop-shadow(0 20px 60px rgba(107,92,232,.25)); }
.hero__lede{ --d:180ms; text-shadow:0 1px 18px var(--ink), 0 0 2px var(--ink); margin-top:18px; max-width:56ch; color:var(--paper-70); font-size:clamp(16px, 1.6vw, 19px); line-height:1.65; }
.hero__ctas{ --d:280ms; margin-top:20px; display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }

/* stroke draw-on, letter by letter */
.hero__mark .draw{ stroke-dasharray:1 1; stroke-dashoffset:1; animation:draw .8s var(--ease-io) forwards; animation-delay:calc(80ms + var(--i,0) * 55ms); }
@keyframes draw{ to{ stroke-dashoffset:0; } }
.hero__mark .dot{ transform-box:fill-box; transform-origin:center; transform:translateY(-40px) scale(0); animation:dot .8s var(--spring) forwards; animation-delay:calc(80ms + var(--i,0) * 55ms); }
@keyframes dot{ 0%{ transform:translateY(-40px) scale(0); } 60%{ transform:translateY(3px) scale(1.15); } 100%{ transform:none; } }

@keyframes fadeIn{ to{ opacity:1; } }

/* =========================================================
   DISCIPLINES
   ========================================================= */
.disciplines{ padding:calc(var(--sec) / 2) 0; }
.trio{ margin-top:14px; display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.trio__item{ position:relative; isolation:isolate; overflow:hidden; background:var(--ink); padding:20px 22px 22px; transition:background-color .6s, opacity .8s var(--ease-out) var(--d,0ms), transform .8s var(--ease-out) var(--d,0ms); }
.trio__item:nth-child(2){ --d:50ms; } .trio__item:nth-child(3){ --d:100ms; }
.trio__item:hover{ background:var(--ink-2); }
/* a soft light follows the pointer, as on the product cards */
.trio__item::before, .tile::before{ content:""; position:absolute; inset:0; z-index:-1; opacity:0; transition:opacity .5s; pointer-events:none;
  background:radial-gradient(380px circle at var(--mx) var(--my), rgba(107,92,232,.2), transparent 60%); }
.trio__item:hover::before, .tile:hover::before{ opacity:1; }
.trio__item h3{ font-family:var(--serif); font-weight:500; font-variation-settings:"opsz" 40; font-size:24px; letter-spacing:-.01em; margin:16px 0 8px; }
/* the whole panel is one link: it opens the collection filtered to that craft */
.trio__item h3 a::after{ content:""; position:absolute; inset:0; }
.trio__item h3 a:focus-visible{ outline:none; }
.trio__item:has(a:focus-visible){ outline:2px solid var(--coral); outline-offset:-3px; }
.trio__go{ display:inline-block; vertical-align:-.08em; margin-inline-start:.4em; width:.8em; height:.8em; fill:none; stroke:var(--coral); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round;
  opacity:0; transform:translateX(-6px); transition:opacity .4s, transform .5s var(--ease-out); }
.trio__item:hover .trio__go, .trio__item:has(a:focus-visible) .trio__go{ opacity:1; transform:none; }
[dir="rtl"] .trio__go{ transform:scaleX(-1) translateX(-6px); }
[dir="rtl"] .trio__item:hover .trio__go, [dir="rtl"] .trio__item:has(a:focus-visible) .trio__go{ transform:scaleX(-1); }
@media (hover: none){ .trio__go{ opacity:1; transform:none; } [dir="rtl"] .trio__go{ transform:scaleX(-1); } }
.trio__item p{ color:var(--text); font-size:16px; line-height:1.6; }

.glyph{ width:54px; height:54px; overflow:visible; }
.glyph .g{ fill:none; stroke:var(--paper); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1 1; stroke-dashoffset:1; transition:stroke-dashoffset 1.6s var(--ease-io); }
.glyph .g--v{ stroke:var(--violet); stroke-width:3.2; transition-delay:.5s; }
.glyph .gd{ fill:var(--paper); opacity:0; transition:opacity .6s .9s; }
.glyph .gd--c{ fill:var(--coral); }
.glyph .g--c{ stroke:var(--coral); transition-delay:.7s; }
.is-in .glyph .g{ stroke-dashoffset:0; }
.is-in .glyph .gd{ opacity:1; }
.pulse-dot{ transform-box:fill-box; transform-origin:center; animation:beat 2.4s var(--ease-io) infinite; }
@keyframes beat{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.5); } }
.trio__item:hover .g{ animation:redrawN 1.4s var(--ease-io); }
@keyframes redrawN{ 0%{ stroke-dashoffset:1; } 100%{ stroke-dashoffset:0; } }

/* =========================================================
   COLLECTION / BENTO
   ========================================================= */
.collection{ padding:calc(var(--sec) * .6) 0 calc(var(--sec) / 2); }   /* first section under the hero (Featured) */
.collection__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:32px; flex-wrap:wrap; margin-bottom:14px; }

.seg{ position:relative; display:inline-flex; padding:4px; border-radius:999px; background:rgba(246,243,238,.06); border:1px solid var(--line-2); }
.seg button, .seg label{ position:relative; z-index:1; padding:9px 20px; font-size:14px; font-weight:500; color:var(--paper-55); border-radius:999px; transition:color .4s; cursor:pointer; }
.seg button[aria-selected="true"], .seg label:has(input:checked){ color:var(--ink); }
.seg__pill{ position:absolute; z-index:0; top:4px; bottom:4px; left:0; width:0; border-radius:999px; background:var(--paper); transition:transform .6s var(--spring), width .6s var(--spring); }
.seg input{ position:absolute; opacity:0; pointer-events:none; }
.seg label:has(input:focus-visible){ outline:2px solid var(--coral); outline-offset:2px; }

.bento{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
.card{
  position:relative; isolation:isolate; overflow:hidden;
  background:linear-gradient(180deg, rgba(246,243,238,.035), rgba(246,243,238,0)) , var(--ink-2);
  border:1px solid var(--line-2); border-radius:var(--radius);
  padding:22px 24px 24px; display:flex; flex-direction:column;
  transition:transform .5s var(--ease-out), border-color .5s, opacity .5s var(--ease-out) var(--d,0ms), box-shadow .5s var(--ease-out);
}
.card:nth-child(2){ --d:40ms; } .card:nth-child(3){ --d:80ms; } .card:nth-child(4){ --d:40ms; } .card:nth-child(5){ --d:80ms; } .card:nth-child(6){ --d:120ms; }
.card::before{ content:""; position:absolute; inset:0; z-index:-1; opacity:0; transition:opacity .5s; background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(107,92,232,.22), transparent 60%); }
.card::after{ content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; pointer-events:none; opacity:0; transition:opacity .5s;
  background:radial-gradient(300px circle at var(--mx,50%) var(--my,50%), rgba(185,176,255,.6), transparent 60%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; }
.card:hover{ transform:translateY(-6px); box-shadow:0 30px 80px -30px rgba(10,6,30,.8); }
.card:hover::before, .card:hover::after{ opacity:1; }
.card.is-hidden{ display:none; }
.card--xl{ grid-column:span 2; grid-row:span 2; }
.card h3{ font-family:var(--serif); font-weight:500; font-variation-settings:"opsz" 40; font-size:24px; letter-spacing:-.01em; margin-top:auto; padding-top:16px; }
.card--xl h3{ font-size:clamp(26px, 2.6vw, 34px); }
.card p{ color:var(--text); font-size:15.5px; line-height:1.6; margin-top:6px; max-width:52ch; }
.card__top{ display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:12px; }
.card__for{ color:var(--text-soft); }
.tag{ display:inline-flex; align-items:center; gap:7px; padding:5px 12px; border-radius:999px; border:1px solid var(--line); color:var(--text); font-size:12.5px; font-weight:500; letter-spacing:.01em; }
.tag--live{ color:var(--coral); border-color:rgba(255,138,107,.3); }
.tag--live i{ width:6px; height:6px; border-radius:50%; background:var(--coral); box-shadow:0 0 0 0 rgba(255,138,107,.6); animation:ping 1.8s infinite; }
@keyframes ping{ 0%{ box-shadow:0 0 0 0 rgba(255,138,107,.6); } 80%,100%{ box-shadow:0 0 0 8px rgba(255,138,107,0); } }

.viz{ position:relative; margin-top:18px; height:124px; border-radius:18px; background:rgba(20,15,41,.6); border:1px solid var(--line-2); overflow:hidden; }
.card--xl .viz{ flex:1; min-height:150px; }

/* coming-soon tag */
.tag--soon{ color:var(--coral); border-color:rgba(255,138,107,.3); background:rgba(255,138,107,.06); }
.tag--soon i{ width:6px; height:6px; border-radius:50%; background:var(--coral); animation:ping 1.8s infinite; }

/* ---------- Fahras ---------- */
.fahras__name{ display:flex; align-items:center; gap:.5em; flex-wrap:wrap; }
.fahras__name > span{ display:inline-block; line-height:1; }
/* Reem Kufi's letters sit ~0.14em lower than Fraunces' — lift so both words share one optical centre line */
.fahras__ar{ font-family:var(--arabic); font-weight:600; font-size:.92em; color:var(--violet-soft); letter-spacing:0; transform:translateY(-.143em); }
.fx-points{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.fx-points li{ font-size:13px; padding:5px 11px; border-radius:999px; background:rgba(107,92,232,.12); color:var(--text); border:1px solid rgba(107,92,232,.25); }

.viz--fahras{ display:grid; grid-template-columns:.85fr 1.15fr; gap:18px; padding:22px; --fx:11s; }
.fx-docs{ position:relative; display:flex; flex-direction:column; gap:10px; min-width:0; }
.fx-path{ display:flex; align-items:center; gap:7px; font-size:11.5px; color:var(--paper-55); white-space:nowrap; min-width:0; }
.fx-path span{ overflow:hidden; text-overflow:ellipsis; }
.fx-path svg{ flex:none; width:16px; height:16px; fill:rgba(107,92,232,.25); stroke:var(--violet-soft); stroke-width:1.5; stroke-linejoin:round; }
.fx-live{ flex:none; width:6px; height:6px; border-radius:50%; background:var(--violet); animation:ping 1.8s infinite; }
.fx-tree{ position:relative; display:flex; flex-direction:column; gap:9px; margin-left:7px; padding-left:12px; border-left:1px dashed var(--line); }
.fx-doc{ position:relative; display:flex; flex-direction:column; gap:5px; padding:10px 12px; border-radius:11px; background:rgba(246,243,238,.04); border:1px solid var(--line-2); }
.fx-doc b{ font-weight:500; font-size:11.5px; color:var(--paper-55); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fx-doc i{ display:block; height:4px; border-radius:2px; background:rgba(246,243,238,.1); }
.fx-doc i:nth-of-type(2){ width:82%; } .fx-doc i:nth-of-type(3){ width:58%; }
.fx-doc--hit{ animation:fxHit var(--fx) var(--ease-io) infinite; }
.fx-doc--hit .fx-mark{ animation:fxMark var(--fx) var(--ease-io) infinite; }
.fx-scan{ position:absolute; left:-6px; right:-6px; top:0; height:42px; z-index:2; pointer-events:none; border-radius:10px;
  background:linear-gradient(180deg, transparent, rgba(107,92,232,.35) 50%, transparent); opacity:0; animation:fxScan var(--fx) var(--ease-io) infinite; }

.fx-chat{ display:flex; flex-direction:column; gap:12px; justify-content:center; font-size:14px; line-height:1.5; }
.fx-q{ align-self:flex-end; max-width:92%; padding:10px 14px; border-radius:16px 16px 5px 16px; background:var(--violet); opacity:0; animation:fxQ var(--fx) var(--ease-out) infinite; }
.fx-a{ align-self:flex-start; max-width:96%; padding:12px 14px; border-radius:16px 16px 16px 5px; background:rgba(246,243,238,.07); border:1px solid var(--line-2); opacity:0; animation:fxA var(--fx) var(--ease-out) infinite; }
.fx-a__text{ display:block; clip-path:inset(0 100% 0 0); animation:fxType var(--fx) linear infinite; }
.fx-a em{ font-style:normal; color:var(--coral); font-weight:600; }
.fx-src{ display:inline-flex; align-items:center; gap:7px; margin-top:10px; padding:5px 10px; border-radius:8px; font-size:11.5px; color:var(--violet-soft); background:rgba(107,92,232,.14); border:1px solid rgba(107,92,232,.35); opacity:0; animation:fxSrc var(--fx) var(--spring) infinite; }
.fx-src svg{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linejoin:round; }
.fx-offline{ position:absolute; right:14px; top:12px; display:inline-flex; align-items:center; gap:6px; font-size:11.5px; color:var(--text-soft); }
.fx-offline svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.fx-offline circle{ fill:currentColor; stroke:none; }

@keyframes fxQ    { 0%,3%{ opacity:0; transform:translateY(10px) scale(.97); } 8%,88%{ opacity:1; transform:none; } 94%,100%{ opacity:0; transform:translateY(-6px); } }
@keyframes fxScan { 0%,10%{ opacity:0; top:-10%; } 13%{ opacity:1; } 28%{ opacity:1; top:90%; } 31%,100%{ opacity:0; top:90%; } }
@keyframes fxA    { 0%,30%{ opacity:0; transform:translateY(10px); } 34%,88%{ opacity:1; transform:none; } 94%,100%{ opacity:0; transform:translateY(-6px); } }
@keyframes fxType { 0%,32%{ clip-path:inset(0 100% 0 0); } 50%,100%{ clip-path:inset(0 0 0 0); } }
@keyframes fxSrc  { 0%,52%{ opacity:0; transform:translateY(6px) scale(.9); } 57%,88%{ opacity:1; transform:none; } 94%,100%{ opacity:0; } }
@keyframes fxHit  { 0%,52%,94%,100%{ border-color:var(--line-2); background:rgba(246,243,238,.04); box-shadow:none; }
                    57%,88%{ border-color:rgba(107,92,232,.7); background:rgba(107,92,232,.12); box-shadow:0 0 0 4px rgba(107,92,232,.12), 0 10px 30px -10px rgba(107,92,232,.6); } }
@keyframes fxMark { 0%,52%,94%,100%{ background:rgba(246,243,238,.1); } 57%,88%{ background:var(--coral); } }

/* ---------- coming soon cards: each shows what its craft does ---------- */
.card--soon .viz{ flex:1; min-height:124px; }   /* the drawing takes up the spare height, so no empty band above the title */
.card--soon h3{ color:var(--paper); }

/* web: a small page that builds itself */
.viz--web{ display:flex; flex-direction:column; }
.viz--web span, .viz--web i, .viz--web b{ display:block; }
.mw__bar{ display:flex!important; align-items:center; gap:5px; padding:9px 12px; border-bottom:1px solid var(--line-2); }
.mw__bar i{ width:6px; height:6px; border-radius:50%; background:rgba(246,243,238,.22); }
.mw__bar b{ flex:1; height:8px; margin-inline-start:8px; border-radius:4px; background:rgba(246,243,238,.07); }
.mw__body{ flex:1; min-height:0; display:grid!important; grid-template-columns:26% 1fr; gap:12px; padding:12px; }
.mw__side{ border-radius:8px; background:rgba(107,92,232,.16); border:1px solid rgba(107,92,232,.28); }
.mw__main{ display:flex!important; flex-direction:column; justify-content:center; gap:8px; min-width:0; }
.mw__main i{ height:7px; border-radius:4px; background:rgba(246,243,238,.14); transform-origin:left; animation:mwLine 6s var(--ease-io) infinite; }
[dir="rtl"] .mw__main i{ transform-origin:right; }
.mw__main i:nth-child(1){ width:70%; height:11px; background:rgba(246,243,238,.3); }
.mw__main i:nth-child(2){ width:92%; animation-delay:.2s; }
.mw__main i:nth-child(3){ width:58%; animation-delay:.4s; }
.mw__main b{ width:62px; height:20px; margin-top:4px; border-radius:999px; background:var(--violet); animation:mwPop 6s var(--ease-out) infinite; }
@keyframes mwLine{ 0%,6%{ transform:scaleX(0); opacity:1; } 24%,86%{ transform:scaleX(1); opacity:1; } 96%,100%{ transform:scaleX(1); opacity:0; } }
@keyframes mwPop{ 0%,30%{ transform:scale(0); opacity:1; } 36%{ transform:scale(1.12); opacity:1; } 42%,86%{ transform:scale(1); opacity:1; } 96%,100%{ transform:scale(1); opacity:0; } }

/* live: bars that keep moving, like data arriving */
.ml__bars{ position:absolute; inset:16px 16px 14px; display:flex; align-items:flex-end; gap:5%; border-bottom:1px solid var(--line); }
.ml__bars i{ flex:1; height:100%; border-radius:5px 5px 0 0; background:linear-gradient(180deg, rgba(107,92,232,.8), rgba(107,92,232,.1)); transform-origin:bottom; transform:scaleY(var(--a)); animation:mlBar 3.2s var(--ease-io) infinite alternate; }
.ml__bars i:nth-child(1){ --a:.28; --b:.44; }
.ml__bars i:nth-child(2){ --a:.52; --b:.34; animation-delay:-.6s; }
.ml__bars i:nth-child(3){ --a:.4;  --b:.66; animation-delay:-1.2s; }
.ml__bars i:nth-child(4){ --a:.7;  --b:.5;  animation-delay:-.3s; }
.ml__bars i:nth-child(5){ --a:.56; --b:.82; animation-delay:-1.8s; }
.ml__bars i:nth-child(6){ --a:.84; --b:.64; animation-delay:-.9s; }
.ml__bars i:nth-child(7){ --a:.74; --b:.98; animation-delay:-1.5s; background:linear-gradient(180deg, var(--coral), rgba(255,138,107,.12)); }
@keyframes mlBar{ from{ transform:scaleY(var(--a)); } to{ transform:scaleY(var(--b)); } }

/* ---------- home page: only the featured products, then a link to the full collection page ---------- */
.coll-more{ margin-top:18px; }
@media (min-width: 981px){
  /* two products side by side, about 60/40, one row: Image Guard is wide enough that its text and demo stay short */
  .bento--featured{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
  .bento--featured .card--xl{ grid-column:auto; grid-row:auto; }
  .bento--featured .viz--ig{ flex:1; align-content:start; }
  .bento--featured .ig-photo{ min-height:130px; }
  .bento--featured .ig-meta{ flex-direction:row; flex-wrap:wrap; gap:8px; }
  .bento--featured .ig-chip{ flex:1 1 0; }
  .bento--featured .ig-chip:nth-child(2){ display:flex!important; }   /* location and phone; the date stays on the collection page */
}
@media (min-width: 761px) and (max-width: 980px){
  .bento--featured .card--ig{ grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); grid-template-rows:auto 1fr; column-gap:32px; }
  .bento--featured .card--ig .card__top{ grid-column:1 / -1; }
  .bento--featured .viz--ig{ grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:14px; padding:16px; min-height:230px; }
  .bento--featured .ig-chip:not(:first-child){ display:flex!important; }
  .bento--featured .card--ig .ig-say{ align-self:center; padding-top:18px; }
  .bento--featured .ig-say .fx-cta{ margin-top:22px; padding-top:0; }
}
/* home page: a shorter Fahras demo (three documents, slimmer entries); the full demo stays on the collection page */
.bento--featured .viz--fahras{ padding:36px 18px 16px; gap:14px; }   /* top room for the "Works offline" label */
.bento--featured .fx-docs{ gap:8px; }
.bento--featured .fx-tree{ gap:6px; }
.bento--featured .fx-doc{ padding:7px 11px; gap:4px; }
.bento--featured .fx-doc:last-child, .bento--featured .fx-doc i:nth-of-type(3){ display:none; }
.bento--featured .card--xl .viz{ min-height:0; }
/* Our approach: the step titles are hidden from view (owner, 26 Nov) but kept for screen readers and the keyboard;
   the numbers open the steps, and a keyboard focus ring shows on the number */
.ap h3{ position:absolute!important; width:1px!important; height:1px!important; margin:0!important; padding:0!important; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.ap__p:has(.ap__btn:focus-visible) .ap__num{ outline:2px solid var(--violet); outline-offset:4px; }
/* the full collection page has no hero: room for the fixed header, then the same rhythm as the home page */
.collection--page{ padding-top:calc(var(--sec) + 72px); padding-bottom:var(--sec); min-height:70vh; }

/* a filter with a single match: the card takes the full row instead of leaving a hole beside it */
.bento.is-solo .card{ grid-column:1 / -1; }
@media (min-width: 761px){
  .bento.is-solo .card--soon:not(.is-hidden){ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); grid-template-rows:auto 1fr auto; column-gap:32px; }
  .bento.is-solo .card--soon .card__top{ grid-column:1 / -1; }
  .bento.is-solo .card--soon .viz{ grid-row:2 / 4; min-height:230px; }
  .bento.is-solo .card--soon h3{ grid-column:2; align-self:end; margin-top:0; font-size:clamp(28px, 3vw, 38px); }
  .bento.is-solo .card--soon p{ grid-column:2; align-self:start; }
}

/* ---------- Image Guard: a full-row card; a photo is checked, private lines covered, hidden details struck out ---------- */
.card--ig{ --ig:7s; }
.ig-name{ color:var(--paper); }
.ig-name span{ color:#9d92ff; }
/* in the side column: photo above, one hidden detail (the location) below; the full row (Live filter) shows all three beside the photo */
.viz--ig{ display:grid; grid-template-columns:1fr; gap:10px; padding:12px; flex:none; min-height:0; }
.ig-chip:not(:first-child){ display:none!important; }
.viz--ig span, .viz--ig i, .viz--ig b{ display:block; }
.ig-photo{ position:relative; min-height:150px; border-radius:12px; overflow:hidden; background:linear-gradient(165deg, #43378a 0%, #2a2158 55%, #1b1536 100%); border:1px solid var(--line-2); }
.ig-sun{ position:absolute; top:16%; right:14%; width:30px; height:30px; border-radius:50%; background:var(--coral); box-shadow:0 0 40px 8px rgba(255,138,107,.35); }
.ig-hill{ position:absolute; left:-10%; right:-10%; bottom:-38%; height:70%; border-radius:50%; background:linear-gradient(180deg, rgba(107,92,232,.55), rgba(26,21,51,.9)); }
.ig-note{ position:absolute; left:12px; bottom:12px; width:min(72%, 230px); padding:10px 12px; display:flex!important; flex-direction:column; gap:6px; border-radius:9px; background:rgba(246,243,238,.92); box-shadow:0 10px 30px -12px rgba(0,0,0,.6); }
.ig-line{ position:relative; }
.ig-line b{ font:500 11px/1.25 var(--read); color:#2a2346; white-space:nowrap; overflow:hidden; text-overflow:clip; }
.ig-line i{ position:absolute; inset:-1px -3px; border-radius:3px; background:#14102a; transform-origin:left; transform:scaleX(0); animation:igBar var(--ig) var(--ease-io) infinite; }
.ig-line:nth-child(2) i{ animation-delay:.4s; }
.ig-line:nth-child(3) i{ animation-delay:.8s; }
.ig-beam{ position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg, transparent 44%, rgba(185,176,255,.5) 50%, transparent 56%); opacity:0; animation:igBeam var(--ig) linear infinite; }
.ig-meta{ display:flex!important; flex-direction:column; justify-content:center; gap:9px; min-width:0; }
.ig-chip{ position:relative; display:flex!important; align-items:center; gap:8px; padding:7px 10px; border-radius:9px; background:rgba(246,243,238,.05); border:1px solid var(--line-2); font:500 11.5px/1.2 var(--read); color:var(--text); animation:igChip var(--ig) var(--ease-io) infinite; min-width:0; }
.ig-chip span{ position:relative; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.ig-chip svg{ flex:none; width:15px; height:15px; fill:none; stroke:var(--violet-soft); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.ig-chip span::after{ content:""; position:absolute; left:0; right:0; top:52%; height:1.5px; background:var(--coral); transform-origin:left; transform:scaleX(0); animation:igStrike var(--ig) var(--ease-io) infinite; }
.ig-chip:nth-child(2), .ig-chip:nth-child(2) span::after{ animation-delay:.35s; }
.ig-chip:nth-child(3), .ig-chip:nth-child(3) span::after{ animation-delay:.7s; }
.ig-ok{ position:absolute; top:26px; inset-inline-start:26px; display:inline-flex!important; align-items:center; gap:7px; padding:6px 12px 6px 9px; border-radius:999px; background:rgba(32,46,40,.92); border:1px solid rgba(120,220,170,.45); color:#bff0d6; font:500 12px/1.2 var(--read); opacity:0; animation:igOk var(--ig) var(--spring) infinite; }
.ig-ok svg{ width:15px; height:15px; fill:none; stroke:#7fe0b0; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
@keyframes igBeam{ 0%{ opacity:0; transform:translateY(-55%); } 3%{ opacity:1; } 20%{ opacity:1; transform:translateY(55%); } 23%,100%{ opacity:0; transform:translateY(55%); } }
@keyframes igBar{ 0%,20%{ transform:scaleX(0); } 28%,90%{ transform:scaleX(1); } 97%,100%{ transform:scaleX(0); } }
@keyframes igStrike{ 0%,42%{ transform:scaleX(0); } 50%,90%{ transform:scaleX(1); } 97%,100%{ transform:scaleX(0); } }
@keyframes igChip{ 0%,44%{ opacity:1; } 52%,90%{ opacity:.45; } 97%,100%{ opacity:1; } }
@keyframes igOk{ 0%,64%{ opacity:0; transform:scale(.9) translateY(4px); } 70%,90%{ opacity:1; transform:none; } 96%,100%{ opacity:0; transform:none; } }
.ig-say{ display:flex; flex-direction:column; }
.ig-say h3{ margin-top:0; }
.ig-say{ flex:1; }
.ig-say .fx-cta{ margin-top:auto; padding-top:18px; }
@media (min-width: 761px){
  .bento.is-solo .card--ig:not(.is-hidden){ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); grid-template-rows:auto 1fr; column-gap:32px; }
  .bento.is-solo .card--ig .card__top{ grid-column:1 / -1; }
  .bento.is-solo .viz--ig{ grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:14px; padding:16px; min-height:230px; }
  .bento.is-solo .ig-chip:not(:first-child){ display:flex!important; }
  .bento.is-solo .card--ig .ig-say{ align-self:center; padding-top:18px; }
  .bento.is-solo .card--ig h3{ font-size:clamp(28px, 3vw, 38px); }
  .bento.is-solo .ig-say .fx-cta{ margin-top:22px; padding-top:0; }
}
@media (prefers-reduced-motion: reduce){
  .ig-line i, .ig-chip span::after{ animation:none!important; transform:none; }
  .ig-chip{ animation:none!important; opacity:.45; }
  .ig-beam{ display:none; }
  .ig-ok{ animation:none!important; opacity:1; }
}

@media (max-width: 760px){
  .viz--fahras{ grid-template-columns:1fr; padding-top:42px; }   /* room for the "Works offline" badge above the folder path */
  .fx-tree{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .fx-q, .fx-a, .fx-src{ animation:none!important; opacity:1; transform:none; }
  .fx-a__text{ animation:none!important; clip-path:none; }
  .fx-scan{ display:none; }
  .mw__main i, .mw__main b, .ml__bars i{ animation:none!important; }
}

/* =========================================================
   APPROACH — four steps.
   Wide screens: the section is one giant "n" (two legs, one arch).
   The steps are four points on the arch; a line of light travels
   along it and opens each step as it arrives. The open step's
   drawing and sentence sit inside the "n". Click any point.
   Phones/tablets: stacked cards, each plays as it scrolls in.
   ========================================================= */
.arch{ position:relative; padding:calc(var(--sec) / 2) 0; overflow:hidden; background:linear-gradient(var(--ink), var(--ink-3) 30%, var(--ink-3) 70%, var(--ink)); }
.apx{ position:relative; margin-top:18px; }
.ap{ list-style:none; }
.ap__arch{ display:none; }
.ap__bar{ display:none; }
.ap__art{ display:grid; place-items:center; min-height:0; }
.ap__art svg{ height:auto; overflow:visible; }
.ap__num{ display:block; font-size:12px; letter-spacing:.14em; font-weight:600; color:var(--violet); transition:color .4s; }
.ap__p.is-active .ap__num{ color:var(--coral); }
.ap h3{ margin:10px 0 0; font-family:var(--serif); font-weight:500; font-variation-settings:"opsz" 60; font-size:clamp(20px, 1.9vw, 28px); line-height:1.15; letter-spacing:-.01em; overflow-wrap:anywhere; }
.ap__btn{ all:unset; cursor:inherit; display:block; }
.ap__btn:focus-visible{ outline:2px solid var(--violet); outline-offset:6px; border-radius:6px; }
.ap__txt p{ color:var(--text); line-height:1.6; }

/* drawings: strokes draw in when the step opens */
.ap .d{ fill:none; stroke:var(--paper); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1 1; stroke-dashoffset:0; }
.ap .d--v{ stroke:var(--violet); stroke-width:5; }
.ap .d--c{ stroke:var(--coral); }
.ap__p.is-active .d{ animation:apdraw .7s var(--ease-io) var(--dl, 0s) both; }
.ap__p.is-active .d--fast{ animation-duration:.6s; }
@keyframes apdraw{ from{ stroke-dashoffset:1; } to{ stroke-dashoffset:0; } }
/* step 04: your data (violet dot) heads for a snooper (incognito sign), touches the coral line and comes home */
.ap .d--s{ stroke:var(--violet-soft); }
.ap__wall{ stroke:var(--coral); stroke-width:4; stroke-linecap:round; opacity:.4; }
.ap__dot{ fill:#9d92ff; }
.ap__p.is-active .ap__dot{ animation:apHome 3.4s cubic-bezier(.5,0,.3,1) .9s infinite; }
.ap__p.is-active .ap__wall{ animation:apWall 3.4s ease-in-out .9s infinite; }
@keyframes apHome{ 0%,15%{ transform:translateX(0); } 45%{ transform:translateX(50px); } 55%{ transform:translateX(44px); } 85%,100%{ transform:translateX(0); } }
@keyframes apWall{ 0%,40%{ opacity:.4; } 47%{ opacity:1; } 70%,100%{ opacity:.4; } }
@media (prefers-reduced-motion: reduce){ .ap__dot, .ap__wall{ animation:none!important; } }
.t25{ --dl:.25s; } .t30{ --dl:.3s; } .t50{ --dl:.5s; } .t55{ --dl:.55s; } .t70{ --dl:.7s; }
.t90{ --dl:.9s; } .t110{ --dl:1.1s; } .t135{ --dl:1.35s; } .t150{ --dl:1.5s; }

/* 01 · the n: legs rise, the arch joins them, a spark crosses */
.ap__spark{ fill:var(--coral); filter:drop-shadow(0 0 6px var(--coral)); offset-path:path("M50 78 Q100 22 150 78"); offset-distance:100%; opacity:0; }
.ap__p.is-active .ap__spark{ animation:apspark 1.2s var(--ease-io) 1.1s both, apfade .3s 1.1s both; }
@keyframes apspark{ from{ offset-distance:0%; } to{ offset-distance:100%; } }
@keyframes apfade{ to{ opacity:1; } }
.ap__lbl{ font-family:var(--read); font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; text-anchor:middle; fill:var(--paper-55); opacity:0; transition:opacity .6s; }
.ap__p.is-active .ap__lbl{ opacity:1; transition-delay:.8s; }
html:is([lang="ar"],[lang="ur"]) .ap__lbl{ letter-spacing:0; }

/* 02 · listen (sound bars) → design (a layout draws itself) */
.ap__eq rect{ fill:var(--violet); transform-box:fill-box; transform-origin:center; transform:scaleY(.3); }
.ap__p.is-active .ap__eq rect{ animation:apeq 1.1s var(--ease-io) infinite alternate; }
.ap__eq rect:nth-child(2){ animation-delay:-.4s!important; } .ap__eq rect:nth-child(3){ animation-delay:-.8s!important; }
.ap__eq rect:nth-child(4){ animation-delay:-.2s!important; } .ap__eq rect:nth-child(5){ animation-delay:-.6s!important; }
@keyframes apeq{ from{ transform:scaleY(.25); } to{ transform:scaleY(1); } }

/* 03 · fast: the ring closes in an instant, the bolt strikes, speed lines stream */
.ap__track{ fill:none; stroke:var(--line-2); stroke-width:5; }
.ap__streaks path{ fill:none; stroke:var(--paper-55); stroke-width:3; stroke-linecap:round; opacity:0; }
.ap__p.is-active .ap__streaks path{ animation:apstreak 1.4s var(--ease-out) infinite; }
.ap__streaks path:nth-child(2){ animation-delay:.35s!important; } .ap__streaks path:nth-child(3){ animation-delay:.7s!important; }
@keyframes apstreak{ 0%{ opacity:0; transform:translateX(-16px); } 30%{ opacity:.9; } 100%{ opacity:0; transform:translateX(26px); } }

/* 04 · secure: the shield draws, the keyhole settles, a calm pulse */
.ap__key{ fill:var(--coral); transform-box:fill-box; transform-origin:center; transform:scale(1); }
.ap__p.is-active .ap__key{ animation:appop .6s var(--ease-out) .8s both; }
@keyframes appop{ from{ transform:scale(0); } 70%{ transform:scale(1.15); } to{ transform:scale(1); } }
.ap__ring{ fill:none; stroke:var(--violet); stroke-width:2; opacity:0; transform-box:fill-box; transform-origin:center; }
.ap__p.is-active .ap__ring{ animation:apring 2.6s var(--ease-out) 1.2s infinite; }
.ap__p.is-active .ap__ring--late{ animation-delay:1.3s; }
@keyframes apring{ 0%{ opacity:.7; transform:scale(.6); } 100%{ opacity:0; transform:scale(2); } }

/* ---------- wide screens: the giant "n" ---------- */
@media (min-width: 981px){
  .ap__arch{ display:block; position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
  .ap__arch path{ fill:none; stroke-linecap:round; stroke-linejoin:round; }
  .ap__arch-base{ stroke:var(--line); stroke-width:2; }
  .ap__arch-go{ stroke:url(#apGrad); stroke-width:3; stroke-dasharray:1; stroke-dashoffset:1; filter:drop-shadow(0 0 7px rgba(107,92,232,.8)); }

  /* the list items dissolve into one grid: step names in a row that follows the arch, the open step's drawing and sentence below */
  .ap{ position:relative; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); grid-template-rows:auto minmax(200px, auto); padding:128px 0 10px; }
  .ap__p, .ap__txt{ display:contents; }

  /* the point on the arch */
  .ap__num{ position:absolute; z-index:1; left:var(--nx, 50%); top:var(--ny, 0px); width:46px; height:46px; margin:-23px 0 0 -23px; display:grid; place-items:center; border-radius:50%; cursor:pointer;
    font-size:13px; letter-spacing:.06em; background:var(--ink-3); border:1.5px solid var(--line); color:var(--paper-55);
    transition:background-color .5s, color .5s, border-color .5s, box-shadow .6s, transform .6s var(--spring); }
  .ap__p:hover .ap__num{ border-color:var(--violet-soft); color:var(--paper); }
  .ap__p.is-done .ap__num{ border-color:var(--violet); color:var(--violet-soft); }
  .ap__p.is-active .ap__num{ background:var(--paper); border-color:var(--paper); color:var(--ink); transform:scale(1.18); box-shadow:0 0 0 7px rgba(107,92,232,.22), 0 0 34px rgba(107,92,232,.75); }

  /* the step's name, hanging under its point */
  .ap h3{ grid-row:1; margin:0; padding:0 26px; text-align:center; font-size:clamp(17px, 1.5vw, 21px); line-height:1.25; color:var(--paper-55); cursor:pointer; translate:0 var(--dy, 0px); transition:color .5s; }
  .ap__p:nth-child(1) h3{ grid-column:1; } .ap__p:nth-child(2) h3{ grid-column:2; } .ap__p:nth-child(3) h3{ grid-column:3; } .ap__p:nth-child(4) h3{ grid-column:4; }
  .ap__p:hover h3, .ap__p.is-active h3{ color:var(--paper); }

  /* inside the "n": the open step's drawing and sentence (all four share the same spot) */
  .ap__art{ grid-row:2; grid-column:1 / 3; justify-self:end; align-self:center; width:min(270px, 100%); margin-inline-end:40px; pointer-events:none;
    opacity:0; transform:scale(.9); transition:opacity .5s, transform .8s var(--ease-out); }
  .ap__art svg{ width:100%; }
  .ap__p.is-active .ap__art{ opacity:1; transform:none; }
  .ap__txt p{ grid-row:2; grid-column:3 / 5; align-self:center; justify-self:start; max-width:20ch; padding-inline-end:26px; pointer-events:none;
    font-family:var(--serif); font-variation-settings:"opsz" 72; font-size:clamp(26px, 2.6vw, 38px); line-height:1.15; letter-spacing:-.012em;   /* short statements, set like a headline */ color:var(--paper);
    opacity:0; transform:translateY(12px); transition:opacity .45s, transform .7s var(--ease-out); }
  .ap__p.is-active .ap__txt p{ opacity:1; transform:none; transition-delay:.25s; }
}

/* ---------- phones and tablets: stacked cards ---------- */
@media (max-width: 980px){
  .ap{ display:flex; flex-direction:column; gap:var(--gap); }
  .ap__p{ position:relative; display:grid; grid-template-columns:minmax(120px, 34%) 1fr; align-items:center; column-gap:24px; padding:24px; border-radius:var(--radius); overflow:hidden;
    background:rgba(246,243,238,.025); border:1px solid var(--line-2); }
  .ap__art svg{ width:min(100%, 240px); }
  .ap__txt p{ width:min(40ch, 100%); margin-top:10px; font-family:var(--serif); font-size:21px; line-height:1.25; color:var(--paper); }
}
@media (max-width: 560px){
  .ap__p{ grid-template-columns:92px 1fr; column-gap:16px; padding:18px; }
  .ap__art svg{ width:100%; }
}

/* =========================================================
   SECURITY
   ========================================================= */
.security{ padding:calc(var(--sec) / 2) 0; }
/* Heading on top like every other section, then one wide tile:
   a wordless picture of "least privilege" beside the single statement.
   Six kinds of access circle the core; five stay locked out, one is let in. */
.tile{ position:relative; isolation:isolate; overflow:hidden; border-radius:var(--radius); border:1px solid var(--line-2);
  background:linear-gradient(180deg, rgba(246,243,238,.035), rgba(246,243,238,0)), var(--ink-2);
  transition:border-color .5s, opacity .8s var(--ease-out) var(--d,0ms), transform .8s var(--ease-out) var(--d,0ms); }
.tile:hover{ border-color:rgba(107,92,232,.4); }
.sec{ margin-top:14px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(24px, 4vw, 64px); min-height:0; padding:clamp(20px, 3vw, 36px);
  background:radial-gradient(55% 80% at 25% 50%, rgba(107,92,232,.20), transparent 70%), linear-gradient(180deg, rgba(246,243,238,.035), rgba(246,243,238,0)), var(--ink-2); }
[dir="rtl"] .sec{ background:radial-gradient(55% 80% at 75% 50%, rgba(107,92,232,.20), transparent 70%), linear-gradient(180deg, rgba(246,243,238,.035), rgba(246,243,238,0)), var(--ink-2); }
.sec__say h3{ font-family:var(--serif); font-weight:500; font-variation-settings:"opsz" 72; font-size:clamp(28px, 3.4vw, 44px); line-height:1.08; letter-spacing:-.012em; }
.sec__say p{ margin-top:16px; max-width:30ch; font-size:clamp(17px, 1.5vw, 21px); line-height:1.55; color:var(--text); }

.orbit{ --size:clamp(220px, 23vw, 290px); --r:calc(var(--size) * .41); position:relative; width:var(--size); aspect-ratio:1; justify-self:center; border-radius:50%; }
.orbit::before{ content:""; position:absolute; inset:9%; border-radius:50%; border:1px dashed var(--line); }      /* the path the six travel on */
.orbit::after{ content:""; position:absolute; inset:31%; border-radius:50%; border:1px solid var(--line-2); }
.orbit__sweep{ position:absolute; inset:9%; border-radius:50%; background:conic-gradient(from 0deg, rgba(107,92,232,0) 0deg, rgba(107,92,232,0) 290deg, rgba(107,92,232,.38) 360deg); animation:spin 7s linear infinite; }
.orbit__pulse{ position:absolute; inset:0; margin:auto; width:21%; height:21%; border-radius:50%; border:2px solid var(--coral); opacity:0; animation:ring 4.5s var(--ease-out) infinite; }
.orbit__pulse--late{ animation-delay:2.25s; }
@keyframes ring{ 0%{ transform:scale(1); opacity:.6; } 100%{ transform:scale(3.6); opacity:0; } }
@keyframes spin{ to{ transform:rotate(360deg); } }
.orbit__core{ position:absolute; inset:0; margin:auto; width:21%; height:21%; display:grid; place-items:center; border-radius:50%; background:var(--coral); box-shadow:0 0 60px 10px rgba(255,138,107,.35); }
.orbit__core svg{ width:48%; height:48%; fill:var(--ink); }
/* the whole ring of six turns slowly; each chip turns the other way, so its icon stays upright */
.orbit__spin{ position:absolute; inset:0; animation:spin 70s linear infinite; }
/* one beam per chip, pointing at it; only the beams of the chips that are let in are lit */
.orbit__beam{ position:absolute; left:50%; bottom:50%; width:2px; height:var(--r); margin-left:-1px; border-radius:2px; background:linear-gradient(0deg, rgba(107,92,232,0) 24%, var(--violet) 62%, var(--violet-soft));
  transform-origin:50% 100%; transform:rotate(var(--a)); opacity:0; transition:opacity .7s var(--ease-out); }
.orbit__beam.is-on{ opacity:1; }
.orbit__beam:nth-of-type(1){ --a:0deg; } .orbit__beam:nth-of-type(2){ --a:60deg; } .orbit__beam:nth-of-type(3){ --a:120deg; }
.orbit__beam:nth-of-type(4){ --a:180deg; } .orbit__beam:nth-of-type(5){ --a:240deg; } .orbit__beam:nth-of-type(6){ --a:300deg; }
.orbit__it{ position:absolute; left:50%; top:50%; width:46px; height:46px; margin:-23px 0 0 -23px; transform:rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
.orbit__it:nth-of-type(1){ --a:0deg; } .orbit__it:nth-of-type(2){ --a:60deg; } .orbit__it:nth-of-type(3){ --a:120deg; }
.orbit__it:nth-of-type(4){ --a:180deg; } .orbit__it:nth-of-type(5){ --a:240deg; } .orbit__it:nth-of-type(6){ --a:300deg; }
.orbit__ic{ position:relative; display:grid; place-items:center; width:100%; height:100%; border-radius:50%; background:var(--ink-3); border:1.5px dashed rgba(246,243,238,.22); color:var(--paper-40); animation:spin 70s linear infinite reverse;
  transition:background-color .7s, border-color .7s, color .7s, box-shadow .7s; }
.orbit__ic svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.orbit__ic::after{ content:""; position:absolute; left:50%; top:50%; width:124%; height:1.5px; margin:-.75px 0 0 -62%; border-radius:2px; background:var(--coral); opacity:.8; transform:rotate(-45deg); transition:opacity .5s; }   /* locked out */
.orbit__it--ok .orbit__ic{ border:1.5px solid var(--violet-soft); background:var(--violet); color:var(--paper); box-shadow:0 0 0 6px rgba(107,92,232,.2), 0 0 30px rgba(107,92,232,.8); }   /* the one that is let in */
.orbit__it--ok .orbit__ic::after{ opacity:0; }
.orbit:hover .orbit__spin, .orbit:hover .orbit__ic{ animation-play-state:paused; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ padding:calc(var(--sec) / 2) 0 calc(var(--sec) * .75); position:relative; overflow:hidden;
  background:radial-gradient(50% 60% at 15% 30%, rgba(107,92,232,.16), transparent 70%), var(--ink); }
.contact__grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px, 5vw, 72px); align-items:center; }
.contact__lede{ --d:100ms; margin-top:14px; color:var(--text); max-width:46ch; font-size:16.5px; line-height:1.6; }

.form{ --d:80ms; position:relative; display:flex; flex-direction:column; gap:10px; padding:20px; border-radius:var(--radius); background:rgba(26,21,51,.7); border:1px solid var(--line-2); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.seg--form{ align-self:flex-start; margin-bottom:6px; }
.field{ position:relative; display:block; }
.field input, .field textarea{
  width:100%; font:inherit; font-size:15px; color:var(--paper);
  background:rgba(246,243,238,.04); border:1px solid var(--line); border-radius:16px;
  padding:20px 16px 8px; resize:vertical; transition:border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea{ min-height:88px; }
.field span{ position:absolute; inset-inline-start:17px; top:14px; color:var(--text-soft); font-size:15px; pointer-events:none; transform-origin:left top; transition:transform .4s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--violet); background:rgba(107,92,232,.06); box-shadow:0 0 0 4px rgba(107,92,232,.15); }
.field input:focus + span, .field textarea:focus + span,
.field input:not(:placeholder-shown) + span, .field textarea:not(:placeholder-shown) + span{ transform:translateY(-9px) scale(.76); color:var(--paper-55); }
.field.is-bad input, .field.is-bad textarea{ border-color:var(--coral); }
.hp{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); opacity:0; pointer-events:none; }
.ts-box{ display:flex; justify-content:center; }
.ts-box:empty{ display:none; }
.form__note{ font-size:14px; color:var(--coral); }
.form__note:empty{ margin-top:-14px; }   /* no message yet: take no room under the button */
.form__note.is-ok{ color:var(--text-soft); }
.form__privacy{ margin-top:-6px; font-size:12.5px; line-height:1.5; color:var(--paper-40); }
.form.is-busy button[type="submit"]{ opacity:.6; pointer-events:none; }
.field select{
  width:100%; font:inherit; font-size:15px; color:var(--paper); cursor:pointer;
  background:rgba(246,243,238,.04) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23f6f3ee' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 18px center;
  border:1px solid var(--line); border-radius:16px; padding:20px 44px 8px 16px;
  -webkit-appearance:none; appearance:none; transition:border-color .3s, background-color .3s, box-shadow .3s;
}
.field select option{ background:var(--ink-2); color:var(--paper); }
.field select:focus{ outline:none; border-color:var(--violet); box-shadow:0 0 0 4px rgba(107,92,232,.15); }
.field--select span{ transform:translateY(-9px) scale(.76); color:var(--text-soft); }
.fx-cta{ align-self:flex-start; display:inline-flex; align-items:center; gap:8px; margin-top:16px; font-weight:500; color:var(--paper); transition:color .3s; }
.fx-cta svg{ width:17px; height:17px; fill:none; stroke:var(--coral); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .5s var(--ease-out); }
.fx-cta:hover{ color:var(--coral); }
.fx-cta:hover svg{ transform:translateX(5px); }
.form__again{ font-size:14px; color:var(--text-soft); border-bottom:1px solid var(--line); padding-bottom:2px; }
.form__again:hover{ color:var(--paper); }
.form__done{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:24px clamp(20px,6%,48px); text-align:center; opacity:0; pointer-events:none; transition:opacity .6s .3s; }
.form__done svg{ width:72px; height:72px; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.form__done circle{ stroke:var(--violet); stroke-width:3; stroke-dasharray:1 1; stroke-dashoffset:1; }
.form__done path{ stroke:var(--paper); stroke-width:4; stroke-dasharray:1 1; stroke-dashoffset:1; }
.form__done p{ font-family:var(--serif); font-size:clamp(19px,4.8vw,22px); line-height:1.35; max-width:26ch; text-wrap:balance; }
.form > *:not(.form__done){ transition:opacity .4s, transform .6s var(--ease-out); }
.form.is-sent > *:not(.form__done){ opacity:0; transform:scale(.98); pointer-events:none; }
.form.is-sent .form__done{ opacity:1; pointer-events:auto; }
.form.is-sent .form__done circle{ animation:draw 1s .4s var(--ease-io) forwards; }
.form.is-sent .form__done path{ animation:draw .6s 1.1s var(--ease-io) forwards; }

/* =========================================================
   FOOTER — the tagline as a sign-off, two link columns, and the
   wordmark lit by a soft light that sweeps across it (on a mouse,
   the light follows the cursor)
   ========================================================= */
@property --mx{ syntax:'<length-percentage>'; inherits:true; initial-value:-30%; }
@property --my{ syntax:'<length-percentage>'; inherits:true; initial-value:50%; }
.footer{ position:relative; overflow:hidden; padding:calc(40px + clamp(6px, 1vw, 12px)) 0 12px;
  background:radial-gradient(60% 46% at 50% 0%, rgba(107,92,232,.26), transparent 70%), radial-gradient(55% 45% at 50% 100%, rgba(107,92,232,.18), transparent 70%), var(--ink-3); }
.footer .wrap{ position:relative; }
/* the closing curve: the same arc the hero ends on, with a small coral light running along it */
.footer__arc{ position:absolute; top:0; left:0; width:100%; height:40px; overflow:visible; }
.footer__arc path{ fill:none; }
.footer__arc .footer__arc-top{ fill:var(--ink); }                       /* above the curve: the page; below it: the darker footer */
.footer__arc-glow{ stroke:url(#ftArc); stroke-width:7; opacity:.22; }
.footer__arc-line{ stroke:url(#ftArc); stroke-width:1.5; }
.footer__arc-run{ stroke:var(--coral); stroke-width:2.6; stroke-dasharray:.045 .955; stroke-dashoffset:.045; animation:arcrun 9s linear infinite; }
@keyframes arcrun{ to{ stroke-dashoffset:-1; } }
/* a few stars under the curve; two layers twinkle out of step */
.footer__stars, .footer__stars::after{ content:""; position:absolute; inset:40px 0 0; pointer-events:none; animation:twinkle 5s ease-in-out infinite alternate; }
.footer__stars{ background-image:
  radial-gradient(circle 1.1px at 6% 22%, #ece8ff 99%, transparent), radial-gradient(circle 1px at 17% 61%, #ece8ff 99%, transparent),
  radial-gradient(circle 1.3px at 29% 12%, #ece8ff 99%, transparent), radial-gradient(circle 1px at 41% 78%, #ece8ff 99%, transparent),
  radial-gradient(circle 1.2px at 58% 30%, #ece8ff 99%, transparent), radial-gradient(circle 1px at 71% 68%, #ece8ff 99%, transparent),
  radial-gradient(circle 1.3px at 83% 18%, #ece8ff 99%, transparent), radial-gradient(circle 1px at 94% 52%, #ece8ff 99%, transparent); }
.footer__stars::after{ inset:0; animation-delay:-2.5s; background-image:
  radial-gradient(circle 1px at 11% 84%, #ece8ff 99%, transparent), radial-gradient(circle 1.2px at 23% 38%, #ece8ff 99%, transparent),
  radial-gradient(circle 1px at 36% 55%, #ece8ff 99%, transparent), radial-gradient(circle 1.2px at 49% 9%, #ece8ff 99%, transparent),
  radial-gradient(circle 1px at 64% 88%, #ece8ff 99%, transparent), radial-gradient(circle 1.1px at 77% 41%, #ece8ff 99%, transparent),
  radial-gradient(circle 1px at 89% 80%, #ece8ff 99%, transparent), radial-gradient(circle 1.2px at 97% 14%, #ece8ff 99%, transparent); }
@keyframes twinkle{ from{ opacity:.18; } to{ opacity:.7; } }
.footer__top{ display:grid; grid-template-columns:1.7fr 1fr 1fr; gap:clamp(32px, 5vw, 72px); align-items:start; }
.footer__say{ font-family:var(--serif); font-weight:500; font-variation-settings:"opsz" 72; font-size:clamp(17px, 1.5vw, 20px); line-height:1.2; letter-spacing:-.008em; max-width:24ch; color:var(--paper); }
html:is([lang="ar"],[lang="ur"]) .footer__say{ line-height:1.35; }
html[lang="zh"] .footer__say, html[lang="ja"] .footer__say{ line-height:1.25; letter-spacing:0; }
.footer__promise{ display:inline-flex; align-items:center; gap:9px; margin-top:16px; padding:7px 14px; border-radius:999px; font-size:14px; color:var(--text);
  border:1px solid rgba(107,92,232,.3); background:rgba(107,92,232,.08); }
.footer__promise svg{ flex:none; width:17px; height:17px; fill:none; stroke:var(--violet-soft); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.footer__col{ display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.footer__col:nth-child(2){ --d:50ms; } .footer__col:nth-child(3){ --d:100ms; }
.footer__h{ margin-bottom:4px; font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--paper-55); }
html:is([lang="ar"],[lang="ur"]) .footer__h{ letter-spacing:0; }
.footer__col a{ position:relative; font-size:14px; color:var(--text); transition:color .3s; }
.footer__col a::after{ content:""; position:absolute; inset-inline:0; bottom:-3px; height:1px; background:var(--coral); transform:scaleX(0); transform-origin:right; transition:transform .45s var(--ease-out); }
.footer__col a:hover, .footer__col a:focus-visible{ color:var(--paper); }
.footer__col a:hover::after, .footer__col a:focus-visible::after{ transform:scaleX(1); transform-origin:left; }

.footer__markwrap{ position:relative; width:min(100%, 180px); margin:0 0 10px; }   /* compact: the wordmark heads the brand column */
.footer__mark{ display:block; width:100%; height:auto; }
.footer__mark--base{ opacity:.12; }
.footer__mark--lit{ position:absolute; inset:0; filter:drop-shadow(0 0 14px rgba(107,92,232,.6));
  -webkit-mask-image:radial-gradient(circle 120px at var(--mx) var(--my), #000 25%, transparent 72%);
          mask-image:radial-gradient(circle 120px at var(--mx) var(--my), #000 25%, transparent 72%); }
.footer__markwrap.is-sweep{ animation:ftsweep 7s var(--ease-io) infinite alternate; }
.footer__markwrap.is-follow{ transition:--mx .35s var(--ease-out), --my .35s var(--ease-out); }
@keyframes ftsweep{ from{ --mx:-8%; } to{ --mx:108%; } }

.footer__row{ margin-top:12px; padding-top:10px; border-top:1px solid var(--line-2); display:flex; justify-content:space-between; align-items:center; gap:16px 24px; flex-wrap:wrap; font-size:14px; color:var(--text-soft); }
.footer__end{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.footer__totop{ display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--paper); font:inherit; font-size:14px; cursor:pointer; transition:border-color .3s, background-color .3s; }
.footer__totop svg{ width:15px; height:15px; fill:none; stroke:var(--coral); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .45s var(--ease-out); }
.footer__totop:hover, .footer__totop:focus-visible{ border-color:var(--violet); background:rgba(107,92,232,.1); }
.footer__totop:hover svg{ transform:translateY(-3px); }
@media (max-width: 760px){
  .footer__top{ grid-template-columns:1fr 1fr; }
  .footer__brand{ grid-column:1 / -1; }
}
@media (prefers-reduced-motion: reduce){
  .footer__mark--lit{ -webkit-mask-image:none; mask-image:none; }
  .footer__mark--base{ opacity:0; }
}
.lang{ position:relative; display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border:1px solid var(--line); border-radius:999px; transition:border-color .3s; }
.lang:hover, .lang:focus-within{ border-color:var(--violet); }
.lang svg{ width:16px; height:16px; fill:none; stroke:var(--text-soft); stroke-width:1.5; }
.lang select{ font:inherit; font-size:14px; color:var(--paper); background:transparent; border:0; cursor:pointer; -webkit-appearance:none; appearance:none; padding-inline-end:4px; }
.lang select:focus{ outline:none; }
.lang select option{ background:var(--ink-2); color:var(--paper); }

/* ---------- web vs PC vs live: the one-line "how it runs" ---------- */
.trio__key{ margin-top:16px; padding-top:14px; border-top:1px solid var(--line-2); font-size:14px!important; line-height:1.55; color:var(--violet-soft)!important; }
/* the line under each panel sits at the same height in all three (it used to follow each sentence's length) */
@media (min-width: 981px){
  .trio__item{ display:flex; flex-direction:column; }
  .trio__key{ margin-top:auto; }
  .trio__item p:not(.trio__key){ margin-bottom:16px; }
}

/* =========================================================
   LANGUAGES
   ========================================================= */
/* Right-to-left (Arabic): mirror what depends on direction */
[dir="rtl"] .field select{ background-position:left 18px center; padding:24px 18px 10px 44px; }
[dir="rtl"] .field span{ transform-origin:right top; }
[dir="rtl"] .split .w > span{ transform-origin:100% 100%; transform:translate3d(0,105%,0) rotate(-4deg); }
[dir="rtl"] .split.is-in .w > span{ transform:none; }
[dir="rtl"] .fx-offline{ right:auto; left:14px; }
[dir="rtl"] .btn svg, [dir="rtl"] .fx-cta svg{ transform:scaleX(-1); }
[dir="rtl"] .btn:hover svg, [dir="rtl"] .fx-cta:hover svg{ transform:scaleX(-1) translateX(4px); }
[dir="rtl"] .nav__links a:not(.nav__cta)::after{ transform-origin:left; }
[dir="rtl"] .nav__links a:not(.nav__cta):hover::after{ transform-origin:right; }

/* Arabic type: IBM Plex Sans Arabic for text, Reem Kufi for headlines; no letter-spacing (it breaks joined letters) */
html:is([lang="ar"],[lang="ur"]){
  --serif:'Reem Kufi', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --read:'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --sans:'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
html:is([lang="ar"],[lang="ur"]) body{ font-family:var(--sans); }
html:is([lang="ar"],[lang="ur"]) .eyebrow, html:is([lang="ar"],[lang="ur"]) .display, html:is([lang="ar"],[lang="ur"]) h1, html:is([lang="ar"],[lang="ur"]) h2, html:is([lang="ar"],[lang="ur"]) h3,
html:is([lang="ar"],[lang="ur"]) .btn, html:is([lang="ar"],[lang="ur"]) .tag{ letter-spacing:0!important; text-transform:none; }
html:is([lang="ar"],[lang="ur"]) .display{ line-height:1.3; font-weight:600; }
html:is([lang="ar"],[lang="ur"]) .ap h3{ line-height:1.35; }
html:is([lang="ar"],[lang="ur"]) .hero__lede, html:is([lang="ar"],[lang="ur"]) p{ line-height:1.85; }
html:is([lang="ar"],[lang="ur"]) .split .w{ padding-bottom:.25em; margin-bottom:-.25em; }

/* Chinese & Japanese: system CJK fonts, a little more line height, no uppercase tracking */
html[lang="zh"]{ --read:'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --serif:'Songti SC', 'Noto Serif SC', 'SimSun', serif; }
html[lang="ja"]{ --read:'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif; --serif:'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif; }
html[lang="zh"] .display, html[lang="ja"] .display{ letter-spacing:0; line-height:1.25; }
html[lang="zh"] .eyebrow, html[lang="ja"] .eyebrow{ letter-spacing:.08em; }
/* Urdu: same right-to-left rules as Arabic; IBM Plex Sans Arabic has every Urdu letter, so headlines use it too */
html[lang="ur"]{ --serif:'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; }
html[lang="ur"] .hero__lede, html[lang="ur"] p{ line-height:1.95; }
/* Korean: system Hangul fonts, like Chinese and Japanese */
html[lang="ko"]{ --read:'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; --serif:'AppleMyungjo', 'Batang', 'Noto Serif KR', serif; word-break:keep-all; }
html[lang="ko"] .display{ letter-spacing:0; line-height:1.25; }
html[lang="ko"] .eyebrow{ letter-spacing:.08em; }
/* Hindi: Latin fonts first (for names like Fahras), Devanagari from the system */
html[lang="hi"]{
  --serif:'Newsreader', 'Fraunces', 'Nirmala UI', 'Kohinoor Devanagari', 'Noto Serif Devanagari', serif;
  --read:'Inter', 'Nirmala UI', 'Kohinoor Devanagari', 'Noto Sans Devanagari', sans-serif;
  --sans:'Space Grotesk', 'Nirmala UI', 'Kohinoor Devanagari', 'Noto Sans Devanagari', sans-serif;
}
html[lang="hi"] .display, html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3{ letter-spacing:0; line-height:1.3; }
html[lang="hi"] .eyebrow, html[lang="hi"] .tag, html[lang="hi"] .btn{ letter-spacing:0; text-transform:none; }
html[lang="hi"] p{ line-height:1.8; }
.footer__row a{ transition:color .3s; } .footer__row a:hover{ color:var(--paper); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .trio{ grid-template-columns:1fr; }
  .trio__item{ display:grid; grid-template-columns:76px 1fr; column-gap:28px; align-items:start; padding:36px 32px; }
  .trio__item .glyph{ grid-row:span 3; }
  .trio__item h3{ margin-top:0; }
  .bento{ grid-template-columns:1fr 1fr; }
  .card--xl{ grid-column:span 2; grid-row:auto; }
  .sec, .contact__grid{ grid-template-columns:1fr; }
  .sec{ min-height:0; }
}
@media (max-width: 760px){
  .nav__toggle{ display:block; }
  .nav__links{ position:fixed; inset:68px 0 auto 0; flex-direction:column; align-items:flex-start; gap:0; padding:12px var(--gutter) 28px;
    background:rgba(33,26,61,.97); border-bottom:1px solid var(--line-2);
    opacity:0; transform:translateY(-12px); pointer-events:none; transition:opacity .4s, transform .5s var(--ease-out); }
  .nav.is-open .nav__links{ opacity:1; transform:none; pointer-events:auto; }
  .nav__links a{ font-size:22px; font-family:var(--serif); padding:12px 0; width:100%; color:var(--paper); }
  .nav__links a:not(.nav__cta)::after{ display:none; }
  .nav__cta{ margin-top:12px; width:auto!important; font-family:var(--sans)!important; font-size:15px!important; padding:12px 22px!important; }
  .nav.is-open{ background:rgba(33,26,61,.96); }
  .trio__item{ grid-template-columns:52px 1fr; column-gap:18px; padding:24px 20px 26px; }
  .trio__item .glyph{ width:52px; height:52px; }
  .trio__item h3{ margin-top:0; }
  .bento{ grid-template-columns:1fr; }
  .card--xl{ grid-column:auto; }
  .card--xl .viz{ min-height:200px; }
  .collection__head{ align-items:flex-start; }
  .seg button{ padding:8px 15px; }
  .form{ padding:22px; }
}

/* =========================================================
   REDUCED MOTION — everything still looks finished
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; animation-delay:0s!important; transition-delay:0s!important; }
  .reveal{ opacity:1; transform:none; }
  .split .w > span{ transform:none; }
  .hero__inner{ transform:none; opacity:1; }
}
