/* Nawl site. Shared by site/index.html (Arabic) and site/en/index.html (English). */

/* tokens: the brand colours from CLAUDE.md, plus the loom's night and the four lines of business */
:root {
  --cream: #eddfcc;       /* page background */
  --paper: #f3e9d8;       /* text on dark; raised surfaces */
  --brand: #833731;
  --brand-hover: #6d2b26;
  --ink: #2e2119;         /* headings and text */
  --text-2: #6f5248;      /* secondary text (5.4:1); the brand muted #7a6a5c is 3.96:1 on cream, too low for text */
  --muted: #7a6a5c;       /* rules and decoration only */
  --night: #0b0807;       /* the loom's black: hero, vision, contact */
  --night-2: #140d0b;
  --night-3: #1b120f;
  --d0: #f3e9d8; --d1: #e6b9a2; --d2: #d9a441; --d3: #c4513f;  /* the four lines of business, on dark */
  --l0: #2e2119; --l1: #b5735a; --l2: #a87814; --l3: #c4513f;  /* the same lines, on cream */

  --sans: 'Tajawal', sans-serif;
  --body: 'Tajawal', system-ui, sans-serif;
  --label: 'Tajawal', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --head-ls: 0;
  --head-lh: 1.3;   /* Arabic needs room for dots and tall letters when a heading wraps */
  --h1-lh: 1.25;
  --hh: 68px;
}
html[lang="en"] {
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --label: 'Space Grotesk', system-ui, sans-serif;
  --head-ls: -.02em;
  --head-lh: 1.08;
  --h1-lh: .98;
}
.c0 { background: var(--l0); } .c1 { background: var(--l1); } .c2 { background: var(--l2); } .c3 { background: var(--l3); }
.d0 { background: var(--d0); } .d1 { background: var(--d1); } .d2 { background: var(--d2); } .d3 { background: var(--d3); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: clip; background: var(--cream); color: var(--ink); font-family: var(--body); }
h1, h2, h3, p { margin: 0; }
a { text-decoration: none; color: var(--brand); }
a:hover { color: var(--brand-hover); }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.nl-dark :focus-visible, .nl-hero :focus-visible { outline-color: var(--paper); }

/* header */
.nl-head { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(237,223,204,.82); border-bottom: 1px solid rgba(131,55,49,.16); }
.nl-head-in { max-width: 1200px; margin: 0 auto; padding: 15px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nl-logo { display: flex; align-items: center; gap: 11px; color: var(--brand); }
.nl-logo img { display: block; width: 36px; height: 36px; object-fit: contain; }
.nl-logo span { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: var(--head-ls); }
.nl-nav { display: flex; align-items: center; gap: 26px; }
.nl-nav a { position: relative; font-family: var(--body); font-size: 14px; color: var(--text-2); }
.nl-nav a:hover { color: var(--brand); }
/* a bead slides under the link you point at */
.nl-nav a::after { content: ''; position: absolute; bottom: -10px; inset-inline-start: calc(50% - 3px); width: 6px; height: 6px; background: var(--brand); transform: rotate(45deg) scale(0); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.nl-nav a:hover::after, .nl-nav a:focus-visible::after { transform: rotate(45deg) scale(1); }
.nl-head-end { display: flex; align-items: center; gap: 13px; }
.nl-langs { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(131,55,49,.25); border-radius: 999px; }
.nl-lang { padding: 5px 13px; border-radius: 999px; font-family: 'Tajawal', 'IBM Plex Sans', system-ui, sans-serif; font-size: 12.5px; font-weight: 600; line-height: 1; color: var(--text-2); transition: color .2s, background-color .2s; }
.nl-lang:hover { color: var(--brand); }
.nl-lang.is-on { background: var(--brand); color: var(--paper); }
.nl-langs-dark { border-color: rgba(243,233,216,.3); }
.nl-langs-dark .nl-lang { color: rgba(243,233,216,.75); }
.nl-langs-dark .nl-lang:hover { color: var(--paper); }
.nl-langs-dark .nl-lang.is-on { background: var(--cream); color: var(--brand); }
.nl-head-cta { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 7px; background: var(--brand); color: var(--paper); font-family: var(--body); font-size: 14px; font-weight: 600; transition: background-color .2s, gap .2s; }
.nl-head-cta:hover { background: var(--brand-hover); color: var(--paper); gap: 12px; }
.nl-arr { font-family: var(--mono); font-size: 13px; }
@media (max-width: 860px) {
  .nl-head-in { flex-wrap: wrap; padding: 10px 18px; gap: 10px; }
  .nl-nav { order: 3; width: 100%; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
}

/* the loom hero (loom.js) */
.nl-top { scroll-margin-top: 80px; background: var(--night); }
.nl-hero { position: relative; height: calc(100svh - 68px); min-height: 560px; overflow: hidden; background: var(--night); color: var(--paper); font-family: var(--body); touch-action: pan-y pinch-zoom; }
.nl-intro-pending .nl-hero, .nl-hero.is-intro, .nl-hero.is-title { position: fixed; inset: 0; z-index: 100; height: auto; min-height: 0; }
.nl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the title card: the name, with a band of woven yarn drawing in beneath it */
.nl-title { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding-bottom: 16vh; pointer-events: none; opacity: 0; transform: scale(.98); filter: blur(6px); transition: opacity .3s ease, transform .9s cubic-bezier(.16,1,.3,1), filter .3s ease; }
.nl-hero.is-intro .nl-title { transform: scale(1.05); }
.nl-hero.is-title .nl-title { opacity: 1; transform: none; filter: none; }
.nl-title-name { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: clamp(96px, 16vw, 240px); line-height: 1; color: var(--paper); }
html[lang="en"] .nl-title-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(64px, 11vw, 180px); text-transform: uppercase; letter-spacing: .3em; margin-inline-end: -.3em; transition: letter-spacing .9s cubic-bezier(.16,1,.3,1), margin .9s cubic-bezier(.16,1,.3,1); }
html[lang="en"] .nl-hero.is-title .nl-title-name { letter-spacing: .22em; margin-inline-end: -.22em; }
.nl-title-strip { width: min(440px, 46vw); height: 8px; background: repeating-linear-gradient(90deg, var(--d0) 0 10px, transparent 10px 13px, var(--d3) 13px 23px, transparent 23px 26px, var(--d2) 26px 36px, transparent 36px 39px, var(--d1) 39px 49px, transparent 49px 52px); transform: scaleX(0); transition: transform 1s cubic-bezier(.16,1,.3,1) .1s; }
.nl-hero.is-title .nl-title-strip { transform: scaleX(1); }
.nl-ui { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; transition: opacity .7s ease .1s, transform .9s cubic-bezier(.16,1,.3,1) .1s; }
.nl-intro-pending .nl-ui, .nl-hero.is-intro .nl-ui, .nl-hero.is-title .nl-ui { opacity: 0; transform: translateY(14px); pointer-events: none; }
.nl-grid { max-width: 1280px; margin: 0 auto; padding: 0 40px 52px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.nl-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--d1); font-family: var(--label); font-size: 13px; font-weight: 600; }
.nl-eyebrow-dash { display: inline-block; width: 26px; height: 1.5px; background: rgba(230,185,162,.5); }
.nl-h1 { margin-top: 18px; font-family: var(--sans); line-height: var(--h1-lh); letter-spacing: var(--head-ls); }
.nl-h1-a { display: block; font-weight: 500; font-size: clamp(28px, 3.1vw, 42px); color: var(--paper); }
.nl-h1-b { display: inline-block; max-width: 100%; margin-top: 12px; padding: 2px 18px; border-radius: 6px; background: var(--brand); color: var(--paper); font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: var(--head-lh); }
html[lang="en"] .nl-h1-b { line-height: 1.08; }
.nl-hero-sub { margin-top: 22px; max-width: 54ch; font-size: 17px; line-height: 1.7; color: rgba(243,233,216,.8); }
.nl-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nl-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 7px; font-family: var(--body); font-size: 15px; font-weight: 700; transition: transform .25s ease, background-color .25s ease, border-color .25s ease, gap .25s ease; }
.nl-btn:hover { transform: translateY(-2px); gap: 14px; }
.nl-btn .nl-arr { font-size: 15px; }
.nl-btn-solid { background: var(--paper); color: var(--brand); }
.nl-btn-solid:hover { color: var(--brand); }
.nl-btn-ghost { padding: 0 24px; border: 1px solid rgba(243,233,216,.32); color: var(--paper); font-weight: 600; }
.nl-btn-ghost:hover { color: var(--paper); border-color: rgba(243,233,216,.65); }
.nl-legend-lab { font-family: var(--label); font-size: 13px; font-weight: 600; color: var(--d1); }
.nl-legend-hint { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.6; color: rgba(243,233,216,.72); }
.nl-legend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nl-chip { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(243,233,216,.18); background: rgba(11,8,7,.35); color: var(--paper); font-family: var(--body); font-size: 14px; text-align: start; cursor: pointer; transition: border-color .25s ease, background-color .25s ease; }
.nl-chip[aria-pressed="true"] { border-color: var(--c); background: rgba(243,233,216,.08); }
.nl-chip-sw { flex-shrink: 0; width: 20px; height: 4px; border-radius: 2px; background: var(--c); }
@media (max-width: 760px) { .nl-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-inline: 20px; } }
@media (prefers-reduced-motion: reduce) { .nl-title, .nl-ui { transition: none; } }
@media (max-width: 860px), (max-height: 500px) {
  html:not(.nl-intro-pending) .nl-hero:not(.is-intro):not(.is-title) { height: auto; min-height: 0; }
  html:not(.nl-intro-pending) .nl-hero:not(.is-intro):not(.is-title) .nl-canvas { height: 52svh; }
  html:not(.nl-intro-pending) .nl-hero:not(.is-intro):not(.is-title) .nl-ui { position: relative; margin-top: 52svh; }
}

/* sections: shared */
.nl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 44px; }
.nl-sec { position: relative; --p: 0; --k: 0; scroll-margin-top: 80px; padding: 104px 0; }
.nl-sec > .nl-wrap { position: relative; z-index: 1; }
.nl-sec > .nl-pin-frame { z-index: 1; }
.nl-h2 { max-width: 20ch; font-family: var(--sans); font-size: 46px; font-weight: 700; line-height: var(--head-lh); letter-spacing: var(--head-ls); color: var(--ink); }
.nl-h2-gap { margin-bottom: 44px; }
.nl-tag { display: inline-block; padding: 5px 12px; border: 1px solid rgba(131,55,49,.24); border-radius: 999px; font-family: var(--label); font-size: 12px; color: var(--text-2); transition: transform .25s ease, border-color .25s, color .25s, background-color .25s; }
.nl-tag:hover { transform: translateY(-2px); border-color: rgba(131,55,49,.5); color: var(--brand); background: rgba(255,250,240,.5); }
.nl-lab { font-family: var(--label); font-size: 13px; font-weight: 600; color: var(--brand); }
.nl-dark .nl-lab { color: var(--d1); }
.nl-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.nl-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nl-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* a warm light follows the pointer across a section */
.nl-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(620px circle at var(--sx, 50%) var(--sy, -600px), rgba(255,248,236,.62), transparent 62%); opacity: var(--sl, 0); transition: opacity .6s ease; }
.nl-dark .nl-spot { background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, -600px), rgba(196,81,63,.26), transparent 62%); }
/* looping animations run only while their section is on screen */
.nl-sec:not([data-live]) *, .nl-sec:not([data-live]) *::before, .nl-sec:not([data-live]) *::after { animation-play-state: paused !important; }

/* entrances: the section label draws in, headings rise word by word, the rest follows */
.nl-rv { opacity: 1; }
.nl-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.nl-dash { display: inline-block; width: 28px; height: 1.5px; background: rgba(131,55,49,.45); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.16,1,.3,1) .12s; }
[dir=rtl] .nl-dash { transform-origin: right; }
.nl-dark .nl-dash { background: rgba(243,233,216,.4); }
.nl-label .nl-lab { opacity: 0; transform: translateY(6px); transition: opacity .5s ease .3s, transform .7s cubic-bezier(.16,1,.3,1) .3s; }
[data-shown] .nl-label .nl-lab { opacity: 1; transform: none; }
[data-shown] .nl-dash { transform: scaleX(1); }
.nl-words { display: block; }
.nl-w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em .16em; margin-block: -.1em -.16em; }
.nl-w > span { display: inline-block; transform: translateY(118%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--o, 0s) + .15s + var(--i) * 55ms); }
[dir=rtl] .nl-w > span { transform-origin: 100% 100%; }
[data-shown] .nl-w > span { transform: none; }
/* once a heading has risen in, its words go back to plain inline text, so find-in-page and selection see whole phrases */
[data-shown] .nl-w, [data-shown] .nl-w > span { animation: nl-inline 0s 2.6s forwards; }
@keyframes nl-inline { to { display: inline; overflow: visible; padding: 0; margin: 0; } }
.nl-sec:not([data-live]) .nl-w, .nl-sec:not([data-live]) .nl-w > span { animation-play-state: running !important; }
.nl-up { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .8s ease, transform 1s cubic-bezier(.16,1,.3,1), filter .8s ease; transition-delay: calc(.4s + var(--d, 0s)); }
[data-shown] .nl-up { opacity: 1; transform: none; filter: none; }
.nl-cardwrap { height: 100%; opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .8s ease, transform 1.1s cubic-bezier(.16,1,.3,1); transition-delay: calc(.3s + var(--i) * 95ms); }
[data-shown] .nl-cardwrap { opacity: 1; transform: none; }
/* without the page script nothing waits for an entrance */
html:not(.js) .nl-label .nl-lab, html:not(.js) .nl-dash, html:not(.js) .nl-w > span, html:not(.js) .nl-up, html:not(.js) .nl-cardwrap, html:not(.js) .nl-point, html:not(.js) .nl-wv-line, html:not(.js) .nl-pline, html:not(.js) .nl-vm-line, html:not(.js) .nl-mini { opacity: 1; transform: none; filter: none; }
html:not(.js) .nl-cloth-bead, html:not(.js) .nl-band-bead { transform: rotate(45deg); }

/* cards lean toward the pointer, with a light that follows it */
.nl-tilt { position: relative; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .4s ease, opacity .35s ease, background-color .35s ease; }
.nl-tilt[data-tilting] { transition: transform .12s linear, box-shadow .4s ease, border-color .4s ease, opacity .35s ease, background-color .35s ease; }
.nl-tilt::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(255,248,236,.24), transparent 45%); opacity: 0; transition: opacity .4s ease; }
.nl-tilt[data-tilting]::after { opacity: 1; }

/* a stitched outline that breathes around a thing that is working (in place of a glow) */
@keyframes nl-stitch { 0%, 100% { opacity: 0; transform: scale(.92); } 50% { opacity: 1; transform: none; } }

/* the page thread: draws itself as you read, the shuttle at its tip, a knot at each section label */
.nl-thread { position: absolute; top: 0; bottom: 0; z-index: 0; inset-inline-start: max(18px, calc(50% - 582px)); width: 2px; background: rgba(131,55,49,.12); pointer-events: none; }
.nl-thread-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--brand), #a8473f); transform: scaleY(var(--p)); transform-origin: top; }
.nl-spark { position: absolute; top: calc(var(--p) * 100%); inset-inline-start: -5px; width: 12px; height: 12px; margin-top: -6px; background: var(--brand); border: 2px solid var(--cream); transform: rotate(45deg); opacity: min(1, calc(min(var(--p), calc(1 - var(--p))) * 60)); animation: nl-turn 2.4s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes nl-turn { 0%, 30% { transform: rotate(45deg); } 50%, 80% { transform: rotate(135deg); } 100% { transform: rotate(225deg); } }
.nl-knot { position: absolute; top: 118px; inset-inline-start: -6px; width: 14px; height: 14px; background: var(--cream); border: 1.5px solid var(--brand); transform: rotate(45deg) scale(calc(.7 + .3 * var(--k))); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.nl-knot::after { content: ''; position: absolute; inset: 2.5px; background: var(--brand); opacity: var(--k); transition: opacity .4s; }
.nl-knot::before { content: ''; position: absolute; inset: -6px; border: 1px dashed rgba(131,55,49,.6); opacity: calc(var(--k) * .9); animation: nl-breathe 3.4s ease-in-out infinite; }
@keyframes nl-breathe { 0%, 100% { transform: scale(.8); } 50% { transform: scale(1.1); } }
.nl-dark .nl-thread { background: rgba(243,233,216,.1); }
.nl-dark .nl-thread-fill { background: var(--d1); }
.nl-dark .nl-spark { background: var(--d1); border-color: var(--night); }
.nl-dark .nl-knot { background: var(--night); border-color: var(--d1); }
.nl-dark .nl-knot::after { background: var(--d1); }
.nl-dark .nl-knot::before { border-color: rgba(230,185,162,.6); }

/* the Nawl diamond, in outline, drifts and turns behind each section as you read it */
.nl-ghost { position: absolute; top: 48px; z-index: 0; inset-inline-end: max(16px, calc(50% - 610px)); width: clamp(120px, 17vw, 250px); aspect-ratio: 1; color: rgba(131,55,49,.16); pointer-events: none; user-select: none; transform: translateY(calc((var(--p) - .5) * -110px)) rotate(calc((var(--p) - .5) * 30deg)); }
.nl-ghost svg { display: block; width: 100%; height: 100%; }

/* about: the text lights up word by word as you read it; loose yarn is woven into cloth, then into an application */
.nl-about-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
.nl-h2-about { font-size: 40px; max-width: 16ch; }
.nl-readp { font-family: var(--body); font-size: 20px; line-height: 1.7; color: var(--ink); }
.nl-readp + .nl-readp { margin-top: 24px; }
html[lang="ar"] .nl-readp { line-height: 1.85; }
/* floor .7 keeps unread words at 5:1 */
.nl-rw { opacity: clamp(.7, calc(var(--p) * (var(--n) + 8) - var(--i)), 1); transition: opacity .3s ease; }
.nl-weave { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.nl-yarn { display: flex; align-items: stretch; gap: 5px; height: 46px; }
.nl-yarn i { display: block; width: 2px; border-radius: 1px; animation: nl-flick 2.4s steps(2) infinite; }
.nl-yarn i:nth-child(2) { margin-block: 5px; animation-delay: -.6s; }
.nl-yarn i:nth-child(3) { margin-block: 2px; animation-delay: -1.2s; }
.nl-yarn i:nth-child(4) { margin-block: 7px; animation-delay: -1.8s; }
.nl-yarn i:nth-child(5) { margin-block: 3px; animation-delay: -.9s; }
@keyframes nl-flick { 50% { opacity: .35; } }
.nl-wv-line { position: relative; flex: 0 1 52px; height: 1.5px; background: rgba(131,55,49,.25); overflow: hidden; transform: scaleX(0); transform-origin: left; transition: transform .5s ease .3s; }
.nl-wv-line::after { content: ''; position: absolute; top: -1px; inset-inline-start: 0; width: 10px; height: 3.5px; border-radius: 2px; background: var(--brand); animation: nl-run 1.6s linear infinite; }
@keyframes nl-run { from { transform: translateX(-12px); } to { transform: translateX(56px); } }
[dir=rtl] .nl-wv-line::after { animation-name: nl-run-rtl; }
@keyframes nl-run-rtl { from { transform: translateX(12px); } to { transform: translateX(-56px); } }
[dir=rtl] .nl-wv-line { transform-origin: right; }
.nl-cloth { display: grid; grid-template-columns: repeat(4, 10px); gap: 5px; }
.nl-cloth-bead { width: 10px; height: 10px; transform: rotate(45deg) scale(0); transition: transform .4s cubic-bezier(.16,1,.3,1); transition-delay: calc(.5s + var(--i) * 45ms); }
.nl-mini { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--night-2); border: 1.5px solid var(--d2); opacity: 0; transform: scale(.8); transition: opacity .5s ease 1.3s, transform .6s cubic-bezier(.16,1,.3,1) 1.3s; }
.nl-mini::after { content: ''; position: absolute; inset: -6px; border-radius: 16px; border: 1px dashed rgba(217,164,65,.75); opacity: 0; }
[data-shown] .nl-wv-line { transform: scaleX(1); }
[data-shown] .nl-cloth-bead { transform: rotate(45deg) scale(1); animation: nl-cb 3.2s ease-in-out infinite; animation-delay: calc(1.4s + var(--i) * 120ms); }
@keyframes nl-cb { 0%, 100% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(45deg) scale(.72); } }
[data-shown] .nl-mini { opacity: 1; transform: none; }
[data-shown] .nl-mini::after { animation: nl-stitch 3s ease-in-out 2s infinite; }

/* what we sell: each line of business shows its work, live */
.nl-card { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: var(--cream); border: 1px solid rgba(131,55,49,.2); }
#work[data-hot] .nl-card { opacity: .72; }
#work[data-hot] .nl-cardwrap[data-on] .nl-card { opacity: 1; background: var(--paper); border-color: var(--lc); box-shadow: 0 22px 48px rgba(58,38,32,.16); }
.nl-viz { position: relative; height: 178px; display: flex; align-items: flex-end; justify-content: center; padding: 72px 14px 10px; background-color: var(--night); background-image: radial-gradient(rgba(230,185,162,.13) 1px, transparent 1.2px); background-size: 18px 18px; }
.nl-viz-tile { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--night-2); border: 1.5px solid var(--dc); }
.nl-viz-tile::after { content: ''; position: absolute; inset: -6px; border-radius: 16px; border: 1px dashed var(--dc); opacity: 0; animation: nl-stitch 4s ease-in-out infinite; }
.nl-cardwrap:hover .nl-viz-tile::after { animation-duration: 1.3s; }
.nl-cardwrap:hover .nl-ico { animation: nl-redraw 1s cubic-bezier(.16,1,.3,1); }
@keyframes nl-redraw { from { stroke-dasharray: 100; stroke-dashoffset: 100; } to { stroke-dasharray: 100; stroke-dashoffset: 0; } }
.nl-viz-cap { position: absolute; top: 28px; inset-inline-end: 16px; max-width: 55%; font-family: var(--label); font-size: 12px; font-weight: 600; line-height: 1.3; text-align: end; color: rgba(243,233,216,.66); }
.nl-art-svg { width: 100%; height: 104px; overflow: visible; }
.nl-viz *, .nl-viz *::after { animation-play-state: paused; }
[data-shown] .nl-viz *, [data-shown] .nl-viz *::after { animation-play-state: running; }
.nl-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 22px 24px; }
.nl-card-t { font-family: var(--sans); font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: var(--head-ls); color: var(--ink); }
.nl-card-d { font-family: var(--body); font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
html[lang="ar"] .nl-card-d { line-height: 1.75; }
.nl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
/* data science: actual sales draw in, an unusual value is flagged, then the forecast opens from today with its uncertainty */
.nl-ds-wrap { position: relative; width: min(100%, 241px); aspect-ratio: 260/112; margin: 0 auto; direction: ltr; }
.nl-ds { display: block; width: 100%; height: 100%; overflow: visible; }
.nl-ds-tl { position: absolute; top: -6px; inset-inline-start: 57.7%; transform: translateX(-50%); font-family: var(--body); font-size: 10px; line-height: 1; color: rgba(243,233,216,.78); white-space: nowrap; animation: nl-ds-today 6.4s ease infinite; }
.nl-ds-tag { position: absolute; top: 15%; inset-inline-start: 30%; padding: 3px 9px; border-radius: 999px; background: var(--d3); font-family: var(--body); font-size: 10px; line-height: 1.3; color: var(--paper); white-space: nowrap; transform-origin: 0 50%; animation: nl-ds-tag 6.4s cubic-bezier(.16,1,.3,1) infinite; }
.nl-ds-hist { stroke-dasharray: 100; animation: nl-ds-hist 6.4s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes nl-ds-hist { 0% { stroke-dashoffset: 100; opacity: 1; } 26% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.nl-ds-today { animation: nl-ds-today 6.4s ease infinite; }
@keyframes nl-ds-today { 0%, 25% { opacity: 0; } 31%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.nl-ds-head { transform-box: fill-box; transform-origin: center; animation: nl-pulse 1.6s ease-in-out infinite; }
@keyframes nl-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .45; } }
.nl-ds-fan { transform-origin: 150px 54px; animation: nl-ds-fan 6.4s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes nl-ds-fan { 0%, 29% { transform: scaleX(0); opacity: 0; } 31% { opacity: 1; } 54%, 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
.nl-ds-flag { animation: nl-ds-flag 6.4s ease infinite; }
@keyframes nl-ds-flag { 0%, 11% { opacity: 0; } 14%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.nl-ds-ring { transform-box: fill-box; transform-origin: center; animation: nl-ring2 1.4s ease-out infinite; }
@keyframes nl-ring2 { from { transform: scale(1); opacity: .95; } to { transform: scale(2.6); opacity: 0; } }
@keyframes nl-ds-tag { 0%, 15% { opacity: 0; transform: translateY(5px) scale(.9); } 20%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
/* automation: an invoice arrives, its fields are read, it is saved to the ERP */
.nl-auto { position: relative; width: 100%; padding: 0 4px 6px; }
.nl-auto-row { display: flex; align-items: flex-start; justify-content: space-between; }
.nl-stage { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 62px; flex-shrink: 0; }
.nl-st-box { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 40px; border-radius: 10px; background: var(--night-3); border: 1.4px solid rgba(230,185,162,.4); overflow: visible; }
.nl-st-lab { font-family: var(--body); font-size: 10.5px; line-height: 1.25; text-align: center; color: rgba(243,233,216,.6); }
.nl-link { flex: 1; height: 2px; margin-top: 19px; background-image: linear-gradient(90deg, rgba(230,185,162,.55) 50%, transparent 50%); background-size: 8px 2px; animation: nl-link .6s linear infinite; }
@keyframes nl-link { to { background-position: 8px 0; } }
[dir=rtl] .nl-link { animation-direction: reverse; }
.nl-st1 .nl-st-box { animation: nl-at1 4.8s ease infinite; }
.nl-st2 .nl-st-box { animation: nl-at2 4.8s ease infinite; }
.nl-st3 .nl-st-box { animation: nl-at3 4.8s ease infinite; }
.nl-st1 .nl-st-lab { animation: nl-al1 4.8s ease infinite; }
.nl-st2 .nl-st-lab { animation: nl-al2 4.8s ease infinite; }
.nl-st3 .nl-st-lab { animation: nl-al3 4.8s ease infinite; }
/* the active step's box takes the line's colour and a doubled border, like a stitched edge */
@keyframes nl-at1 { 0%, 2%, 22%, 100% { border-color: rgba(230,185,162,.4); box-shadow: none; } 6%, 18% { border-color: var(--d1); box-shadow: 0 0 0 3px var(--night), 0 0 0 4px rgba(230,185,162,.6); } }
@keyframes nl-at2 { 0%, 32%, 62%, 100% { border-color: rgba(230,185,162,.4); box-shadow: none; } 36%, 58% { border-color: var(--d1); box-shadow: 0 0 0 3px var(--night), 0 0 0 4px rgba(230,185,162,.6); } }
@keyframes nl-at3 { 0%, 72%, 94%, 100% { border-color: rgba(230,185,162,.4); box-shadow: none; } 76%, 90% { border-color: var(--d2); box-shadow: 0 0 0 3px var(--night), 0 0 0 4px rgba(217,164,65,.7); } }
@keyframes nl-al1 { 0%, 2%, 22%, 100% { color: rgba(243,233,216,.6); } 6%, 18% { color: var(--paper); } }
@keyframes nl-al2 { 0%, 32%, 62%, 100% { color: rgba(243,233,216,.6); } 36%, 58% { color: var(--paper); } }
@keyframes nl-al3 { 0%, 72%, 94%, 100% { color: rgba(243,233,216,.6); } 76%, 90% { color: var(--paper); } }
.nl-scan { position: absolute; inset-inline: 6px; top: 6px; height: 2px; border-radius: 2px; background: var(--d1); opacity: 0; animation: nl-scan 4.8s ease-in-out infinite; }
@keyframes nl-scan { 0%, 37% { opacity: 0; transform: translateY(0); } 39% { opacity: 1; transform: translateY(0); } 47% { opacity: 1; transform: translateY(26px); } 55% { opacity: 1; transform: translateY(0); } 58%, 100% { opacity: 0; transform: translateY(0); } }
.nl-ok { position: absolute; top: -7px; inset-inline-end: -7px; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--d2); opacity: 0; transform: scale(.4); animation: nl-ok 4.8s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes nl-ok { 0%, 77% { opacity: 0; transform: scale(.4); } 81%, 92% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; transform: scale(1); } }
/* the invoice: a small page whose three fields light up as they are read */
.nl-doc { position: absolute; top: 8px; inset-inline-start: 27px; display: flex; flex-direction: column; gap: 3px; width: 18px; height: 23px; padding: 5px 3px 0; border-radius: 3px; background: var(--paper); box-shadow: 0 4px 12px rgba(0,0,0,.5); opacity: 0; animation: nl-doc 4.8s cubic-bezier(.65,0,.35,1) infinite; }
.nl-doc i { display: block; height: 2.5px; border-radius: 2px; background: rgba(46,33,25,.3); animation: nl-field 4.8s ease infinite; }
.nl-doc i:nth-child(2) { width: 70%; animation-name: nl-field2; }
.nl-doc i:nth-child(3) { width: 85%; animation-name: nl-field3; }
@keyframes nl-doc { 0% { opacity: 0; transform: translateY(-8px) scale(.7); } 6%, 74% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: scale(.35); } }
.nl-doc-track { position: absolute; inset: 0; pointer-events: none; animation: nl-doc-x 4.8s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes nl-doc-x { 0%, 20% { transform: translateX(0); } 34%, 58% { transform: translateX(calc(50% - 36px)); } 74%, 100% { transform: translateX(calc(100% - 72px)); } }
[dir=rtl] .nl-doc-track { animation-name: nl-doc-x-rtl; }
@keyframes nl-doc-x-rtl { 0%, 20% { transform: translateX(0); } 34%, 58% { transform: translateX(calc(-50% + 36px)); } 74%, 100% { transform: translateX(calc(-100% + 72px)); } }
@keyframes nl-field { 0%, 39% { background: rgba(46,33,25,.3); } 42%, 78% { background: var(--d3); } 100% { background: rgba(46,33,25,.3); } }
@keyframes nl-field2 { 0%, 44% { background: rgba(46,33,25,.3); } 47%, 78% { background: var(--d3); } 100% { background: rgba(46,33,25,.3); } }
@keyframes nl-field3 { 0%, 49% { background: rgba(46,33,25,.3); } 52%, 78% { background: var(--d3); } 100% { background: rgba(46,33,25,.3); } }
.nl-kpi { transform-box: fill-box; transform-origin: center; animation: nl-pulse 2s ease-in-out infinite; }
.nl-bar { transform-box: fill-box; transform-origin: 50% 100%; opacity: .88; animation: nl-bar 3.4s ease-in-out infinite alternate; }
@keyframes nl-bar { 0% { transform: scaleY(.28); } 35% { transform: scaleY(.78); } 70% { transform: scaleY(.5); } 100% { transform: scaleY(.96); } }
.nl-win { animation: nl-float 6s ease-in-out infinite; }
.nl-win-b { animation-delay: -2s; opacity: .7; }
.nl-win-m { animation-delay: -4s; opacity: .85; }
@keyframes nl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.nl-type { transform-box: fill-box; transform-origin: 0 50%; animation: nl-type 3s steps(14, end) infinite; }
@keyframes nl-type { 0% { transform: scaleX(0); opacity: 1; } 55%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.nl-caret { animation: nl-blink 1s steps(1) infinite; }
@keyframes nl-blink { 50% { opacity: 0; } }
.nl-apps { position: relative; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(131,55,49,.16); }
.nl-apps > .nl-lab { display: block; margin-bottom: 16px; }
.nl-apps-row { position: relative; display: flex; flex-wrap: wrap; gap: 9px; overflow: hidden; padding: 3px; }
.nl-apps-row::after { content: ''; position: absolute; top: 0; bottom: 0; width: 26%; inset-inline-start: 0; background: linear-gradient(90deg, transparent, rgba(255,250,240,.6), transparent); pointer-events: none; animation: nl-sweep 7s ease-in-out infinite; }
@keyframes nl-sweep { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(420%); } }
[dir=rtl] .nl-apps-row::after { animation-name: nl-sweep-rtl; }
@keyframes nl-sweep-rtl { 0% { transform: translateX(110%); } 55%, 100% { transform: translateX(-420%); } }
.nl-app { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(131,55,49,.2); background: transparent; font-family: var(--body); font-size: 13.5px; color: var(--ink); transition: opacity .35s, border-color .35s, background-color .35s, box-shadow .35s, transform .35s; }
.nl-app[data-l="0"] { --ac: var(--l0); } .nl-app[data-l="1"] { --ac: var(--l1); } .nl-app[data-l="2"] { --ac: var(--l2); } .nl-app[data-l="3"] { --ac: var(--l3); }
.nl-app-bead { flex-shrink: 0; width: 8px; height: 8px; background: var(--ac); transform: rotate(45deg); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.nl-app:hover .nl-app-bead { transform: rotate(225deg) scale(1.3); }
[data-shown] .nl-app { animation: nl-pop .6s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(.6s + var(--i) * 35ms); }
@keyframes nl-pop { from { opacity: 0; transform: translateY(10px) scale(.9); } }
#work[data-hot] .nl-app { opacity: .28; }
#work[data-hot="0"] .nl-app[data-l="0"], #work[data-hot="1"] .nl-app[data-l="1"], #work[data-hot="2"] .nl-app[data-l="2"], #work[data-hot="3"] .nl-app[data-l="3"] { opacity: 1; border-color: var(--ac); background: var(--paper); box-shadow: 0 6px 18px rgba(58,38,32,.12); transform: translateY(-2px); }
#work[data-hot="0"] .nl-app[data-l="0"] .nl-app-bead, #work[data-hot="1"] .nl-app[data-l="1"] .nl-app-bead, #work[data-hot="2"] .nl-app[data-l="2"] .nl-app-bead, #work[data-hot="3"] .nl-app[data-l="3"] .nl-app-bead { transform: rotate(225deg) scale(1.3); }
.nl-ind { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.nl-ind-lab { flex-shrink: 0; }
.nl-marquee { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nl-mq-track { display: flex; width: max-content; animation: nl-mq 40s linear infinite; }
.nl-mq-track.is-paused { animation-play-state: paused; }
.nl-mq-group { display: flex; }
.nl-mq-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(131,55,49,.3); background: transparent; color: var(--brand); cursor: pointer; transition: background-color .25s, border-color .25s; }
.nl-mq-btn:hover { background: rgba(131,55,49,.07); border-color: rgba(131,55,49,.5); }
.nl-mq-btn[aria-pressed="true"] .nl-ico-pause, .nl-mq-btn[aria-pressed="false"] .nl-ico-play { display: none; }
.nl-mq-item { margin-inline-end: 10px; white-space: nowrap; }
.nl-marquee:hover .nl-mq-track { animation-play-state: paused; }
@keyframes nl-mq { to { transform: translateX(-50%); } }
[dir=rtl] .nl-mq-track { animation-name: nl-mq-rtl; }
@keyframes nl-mq-rtl { to { transform: translateX(50%); } }

/* selected work */
.nl-show-grid { gap: 24px; }
.nl-proj { display: flex; flex-direction: column; height: 100%; background: var(--cream); border: 1px solid rgba(131,55,49,.2); border-radius: 16px; overflow: hidden; color: var(--ink); }
.nl-proj:hover { box-shadow: 0 22px 48px rgba(58,38,32,.16); border-color: rgba(131,55,49,.42); color: var(--ink); }
.nl-art { position: relative; min-height: 244px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 46px 30px 30px; background-color: var(--night); background-image: radial-gradient(rgba(230,185,162,.16) 1px, transparent 1.2px); background-size: 22px 22px; overflow: hidden; }
.nl-stack { position: absolute; top: 16px; inset-inline-start: 20px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--d1); direction: ltr; }
.nl-erp { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.nl-sys { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 106px; height: 76px; flex-shrink: 0; border-radius: 12px; background: var(--night-2); border: 1.5px solid var(--d1); color: var(--paper); }
.nl-sys-t { font-family: 'Space Grotesk', var(--sans); font-weight: 700; font-size: 21px; }
.nl-sys-n { font-family: var(--mono); font-size: 10px; color: var(--d1); }
.nl-sys-b { position: relative; border-color: var(--d2); }
.nl-sys-b .nl-sys-n { color: var(--d2); }
.nl-sys-b::after { content: ''; position: absolute; inset: -7px; border-radius: 17px; border: 1px dashed rgba(217,164,65,.75); opacity: 0; animation: nl-stitch 1.2s ease-in-out .9s infinite; }
.nl-pipe-wrap { position: relative; flex: 1; max-width: 300px; display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.nl-lane { position: relative; height: 24px; }
/* the three kinds of record travel one at a time, so their labels never overlap */
.nl-token-track { position: absolute; inset: 0; pointer-events: none; animation: nl-tok-x 4.8s cubic-bezier(.45,0,.3,1) infinite; }
@keyframes nl-tok-x { 0% { transform: translateX(0); } 30%, 100% { transform: translateX(calc(100% - 76px)); } }
[dir=rtl] .nl-token-track { animation-name: nl-tok-x-rtl; }
@keyframes nl-tok-x-rtl { 0% { transform: translateX(0); } 30%, 100% { transform: translateX(calc(-100% + 76px)); } }
.nl-token { position: absolute; top: 0; inset-inline-start: 0; padding: 3px 10px; border-radius: 999px; background: rgba(230,185,162,.12); border: 1px solid rgba(230,185,162,.5); font-family: var(--body); font-size: 11px; line-height: 16px; color: var(--paper); white-space: nowrap; opacity: 0; animation: nl-token 4.8s linear infinite; }
@keyframes nl-token { 0% { opacity: 0; } 4%, 26% { opacity: 1; } 31%, 100% { opacity: 0; } }
/* the pipe carries woven yarn in the four lines' colours */
.nl-pipe { position: relative; height: 18px; overflow: hidden; border-top: 1px solid rgba(230,185,162,.25); border-bottom: 1px solid rgba(230,185,162,.25); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.nl-flow { position: absolute; top: 6px; inset-inline: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--d1) 0 8px, transparent 8px 11px, var(--d3) 11px 19px, transparent 19px 22px, var(--d2) 22px 30px, transparent 30px 33px, var(--d0) 33px 41px, transparent 41px 44px); animation: nl-flow 2.2s linear infinite; }
@keyframes nl-flow { to { background-position: 44px 0; } }
[dir=rtl] .nl-flow { animation-direction: reverse; }
.nl-art-nama { justify-content: space-between; }
.nl-nama-id { position: relative; display: flex; flex-direction: column; gap: 12px; align-self: center; }
.nl-nama-id .nl-stack { position: static; }
.nl-glyph { font-family: var(--sans); font-weight: 700; font-size: 32px; line-height: 1.2; letter-spacing: var(--head-ls); color: var(--paper); }
.nl-nama { position: relative; display: flex; align-items: center; }
.nl-bubble { position: absolute; top: -14px; inset-inline-end: 82px; display: flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--paper); box-shadow: 0 10px 22px rgba(0,0,0,.4); animation: nl-float 4s ease-in-out infinite; }
.nl-bubble span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: nl-dot 1s ease-in-out infinite; }
.nl-bubble span:nth-child(2) { animation-delay: .15s; } .nl-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes nl-dot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-3px); opacity: 1; } }
.nl-phone { position: relative; display: flex; flex-direction: column; gap: 7px; width: 94px; height: 162px; flex-shrink: 0; padding: 12px 9px; border-radius: 20px; background: var(--ink); border: 5px solid var(--paper); box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.nl-phone-btn { margin-top: auto; height: 24px; border-radius: 8px; background: var(--paper); }
.nl-row { position: relative; height: 20px; border-radius: 6px; background: rgba(243,233,216,.1); }
.nl-hl { animation: nl-step 4.8s ease-in-out infinite; }
.nl-hl::after { content: ''; position: absolute; inset: 0; border-radius: 6px; border: 1.5px solid var(--d1); opacity: 0; animation: nl-tap 4.8s ease-out infinite; animation-delay: inherit; }
@keyframes nl-step { 0%, 4% { background: rgba(243,233,216,.1); box-shadow: none; } 10%, 28% { background: var(--d1); box-shadow: 0 0 0 3px rgba(230,185,162,.3); } 34%, 100% { background: rgba(243,233,216,.1); box-shadow: none; } }
@keyframes nl-tap { 0%, 9% { opacity: 0; transform: scale(1); } 12% { opacity: .9; transform: scale(1); } 26% { opacity: 0; transform: scale(1.2, 1.7); } 100% { opacity: 0; } }
.nl-proj-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 26px 28px; }
.nl-proj-kind { font-size: 12.5px; }
.nl-proj-t { font-family: var(--sans); font-size: 24px; font-weight: 600; line-height: var(--head-lh); letter-spacing: var(--head-ls); color: var(--ink); }
.nl-proj-d { font-family: var(--body); font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
html[lang="ar"] .nl-proj-d { line-height: 1.75; }
.nl-proj-body .nl-tags { margin-top: 6px; padding-top: 0; }
.nl-more { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--brand); }
.nl-more-arrow { font-family: var(--mono); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.nl-proj:hover .nl-more-arrow { transform: translate(3px, -3px); }
[dir=rtl] .nl-proj:hover .nl-more-arrow { transform: translate(-3px, -3px); }

/* how a project runs: the section holds while the six steps pass under the shuttle */
.nl-pin { height: 300vh; padding: 0; }
.nl-pin-frame { position: sticky; top: var(--hh, 68px); height: calc(100vh - var(--hh, 68px)); min-height: 560px; display: flex; flex-direction: column; justify-content: center; gap: 52px; overflow: hidden; }
.nl-pin-head { width: 100%; }
.nl-ghost-pin { top: auto; bottom: 4vh; }
.nl-rail-wrap { position: relative; width: 100%; }
.nl-rail { position: relative; width: max-content; padding: 44px max(44px, calc(50vw - 556px)) 10px; transform: translateX(var(--shift, 0px)); will-change: transform; }
.nl-steps-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.nl-step { --lit: clamp(0, calc((var(--p) * 5 - var(--i)) * 3 + 1), 1); position: relative; width: 340px; flex-shrink: 0; }
.nl-track { position: absolute; top: 22px; inset-inline-start: calc(max(44px, calc(50vw - 556px)) + 11px); width: 1800px; height: 2px; background: rgba(131,55,49,.16); }
.nl-track-fill { position: absolute; inset: 0; background: var(--brand); transform: scaleX(var(--p)); transform-origin: left; }
[dir=rtl] .nl-track-fill { transform-origin: right; }
.nl-shuttle { position: absolute; top: 8px; z-index: 2; inset-inline-start: calc(max(44px, calc(50vw - 556px)) + var(--p) * 1800px - 3px); width: 28px; height: 28px; filter: drop-shadow(0 3px 10px rgba(58,38,32,.35)); }
.nl-shuttle svg { animation: nl-sway 1.8s ease-in-out infinite; }
@keyframes nl-sway { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(8deg); } }
.nl-bead { position: absolute; top: -29px; inset-inline-start: 4px; width: 14px; height: 14px; transform: rotate(45deg) scale(calc(.8 + .3 * var(--lit))); border: 1.5px solid var(--brand); background: var(--cream); transition: transform .3s; }
.nl-bead::after { content: ''; position: absolute; inset: 2.5px; background: var(--brand); opacity: var(--lit); }
/* a step not yet reached stays at 80%, so its text keeps 6.8:1 */
.nl-step-card { display: block; height: 100%; padding: 28px 28px 32px; border-radius: 18px; border: 1px solid rgba(131,55,49,calc(.14 + .36 * var(--lit))); background: rgb(calc(237 + 7 * var(--lit)) calc(223 + 11 * var(--lit)) calc(204 + 16 * var(--lit))); box-shadow: 0 18px 40px rgba(58,38,32,calc(.1 * var(--lit))); opacity: calc(.8 + .2 * var(--lit)); transform: translateY(calc((1 - var(--lit)) * 16px)); }
.nl-step-n { display: block; font-family: var(--mono); font-size: 46px; font-weight: 500; line-height: 1; color: rgba(131,55,49,calc(.25 + .75 * var(--lit))); }
.nl-step-t { display: block; margin-top: 14px; font-family: var(--sans); font-size: 24px; font-weight: 600; line-height: var(--head-lh); letter-spacing: var(--head-ls); color: var(--ink); }
.nl-step-d { display: block; margin-top: 8px; font-family: var(--body); font-size: 15px; line-height: 1.6; color: var(--ink); }
html[lang="ar"] .nl-step-d { line-height: 1.75; }

/* what you get: five commitments, tied on one after another */
.nl-why-grid { grid-template-columns: .8fr 1.2fr; align-items: start; }
.nl-h2-why { font-size: 40px; max-width: 14ch; }
.nl-sticky { position: sticky; top: 120px; }
.nl-swatch { display: grid; grid-template-columns: repeat(9, 10px); gap: 8px; margin-top: 44px; }
.nl-swatch span { width: 10px; height: 10px; transform: rotate(45deg) scale(.7); opacity: .25; animation: nl-tw 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * 110ms); }
@keyframes nl-tw { 0%, 100% { opacity: .22; transform: rotate(45deg) scale(.7); } 35% { opacity: 1; transform: rotate(45deg) scale(1.05); } }
.nl-points { display: flex; flex-direction: column; }
.nl-point { position: relative; display: flex; align-items: flex-start; gap: 20px; padding: 26px 0; opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s cubic-bezier(.16,1,.3,1); transition-delay: calc(.25s + var(--i) * 130ms); }
.nl-pline, .nl-pline-hot { position: absolute; top: 0; inset-inline: 0; height: 1px; background: rgba(131,55,49,.2); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(.25s + var(--i) * 130ms); }
.nl-pline-hot { height: 2px; top: -.5px; background: var(--brand); transition-delay: 0s; transition-duration: .5s; }
[dir=rtl] .nl-pline, [dir=rtl] .nl-pline-hot { transform-origin: right; }
.nl-pknot { flex-shrink: 0; width: 11px; height: 11px; margin-top: 9px; transform: rotate(45deg); border: 1.5px solid var(--brand); background: var(--brand); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.nl-pbody { flex: 1; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.nl-point-t { font-family: var(--sans); font-size: 21px; font-weight: 600; line-height: var(--head-lh); letter-spacing: var(--head-ls); color: var(--ink); }
.nl-point-d { margin-top: 4px; font-family: var(--body); font-size: 15px; line-height: 1.6; color: var(--text-2); }
html[lang="ar"] .nl-point-d { line-height: 1.75; }
[data-shown] .nl-point { opacity: 1; transform: none; }
[data-shown] .nl-pline { transform: scaleX(1); }
.nl-point:hover .nl-pline-hot { transform: scaleX(1); }
.nl-point:hover .nl-pknot { transform: rotate(225deg) scale(1.3); }
.nl-point:hover .nl-pbody { transform: translateX(6px); }
[dir=rtl] .nl-point:hover .nl-pbody { transform: translateX(-6px); }

/* the dark bands: the loom's warp, fine threads with light passing along them */
.nl-dark { background: var(--night); color: var(--paper); overflow: hidden; }
.nl-warp { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 18% 30%, rgba(131,55,49,.42), transparent 70%), radial-gradient(ellipse 50% 60% at 82% 80%, rgba(131,55,49,.22), transparent 70%), repeating-linear-gradient(90deg, rgba(230,185,162,.07) 0 1px, transparent 1px 14px); }
.nl-warp::before, .nl-warp::after { content: ''; position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 40%; animation: nl-warp-light 7s ease-in-out infinite; }
.nl-warp::before { background-image: linear-gradient(180deg, transparent, rgba(230,185,162,.6), transparent); -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 14px); mask-image: repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 14px); }
.nl-warp::after { background-image: linear-gradient(180deg, transparent, rgba(217,164,65,.5), transparent); -webkit-mask-image: repeating-linear-gradient(90deg, transparent 0 7px, #000 7px 8px, transparent 8px 28px); mask-image: repeating-linear-gradient(90deg, transparent 0 7px, #000 7px 8px, transparent 8px 28px); animation-duration: 11s; animation-delay: -4s; }
@keyframes nl-warp-light { 0% { background-position: 0 -70%; } 100% { background-position: 0 170%; } }
.nl-warp-low { opacity: .6; }

/* vision */
#vision { padding: 136px 0; }
#vision .nl-label { margin-bottom: 44px; }
.nl-vm { position: relative; padding-top: 28px; }
.nl-vm > .nl-lab { display: block; margin-bottom: 18px; }
.nl-vm-line { position: absolute; top: 0; inset-inline: 0; height: 2px; background: linear-gradient(90deg, var(--d1), rgba(230,185,162,.12)); transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.16,1,.3,1) var(--o, 0s); }
[dir=rtl] .nl-vm-line { background: linear-gradient(270deg, var(--d1), rgba(230,185,162,.12)); transform-origin: right; }
[data-shown] .nl-vm-line { transform: scaleX(1); }
.nl-vm-text { font-family: var(--sans); font-size: 31px; font-weight: 500; line-height: 1.38; letter-spacing: var(--head-ls); color: var(--paper); }
html[lang="ar"] .nl-vm-text { line-height: 1.6; }
.nl-vm-text .nl-w > span { transition-delay: calc(var(--o, 0s) + .35s + var(--i) * 42ms); }

/* values */
#values .nl-label { margin-bottom: 36px; }
.nl-value { position: relative; display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 26px 26px 30px; border: 1px solid rgba(131,55,49,.2); border-radius: 16px; background: var(--cream); overflow: hidden; }
.nl-value:hover { border-color: rgba(131,55,49,.4); box-shadow: 0 18px 40px rgba(58,38,32,.12); }
.nl-vbead { width: 10px; height: 10px; transform: rotate(45deg); animation: nl-vb 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
@keyframes nl-vb { 0%, 100% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(135deg) scale(1.35); } }
.nl-value-t { font-family: var(--sans); font-size: 22px; font-weight: 600; line-height: var(--head-lh); letter-spacing: var(--head-ls); color: var(--ink); }
.nl-vline { position: absolute; bottom: 0; inset-inline-start: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.16,1,.3,1); }
[dir=rtl] .nl-vline { transform-origin: right; }
.nl-value:hover .nl-vline { transform: scaleX(1); }

/* contact: the cloth keeps weaving across the top; a stitched outline breathes around the button */
#contact { padding: 0; }
.nl-contact-wrap { position: relative; z-index: 1; }
.nl-band { position: relative; padding-top: 76px; }
.nl-band-grid { display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 9px 0; justify-items: center; }
.nl-band-bead { width: 8px; height: 8px; transform: rotate(45deg) scale(0); transition: transform .35s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 28ms); }
.nl-band-bead.h { opacity: .5; }
.nl-band[data-shown] .nl-band-bead { transform: rotate(45deg) scale(1); animation: nl-wave 6s ease-in-out infinite; animation-delay: calc(1.6s + var(--i) * 55ms); }
@keyframes nl-wave { 0%, 22%, 100% { transform: rotate(45deg) scale(1); } 9% { transform: rotate(45deg) scale(1.6); } }
.nl-band-track { position: absolute; top: calc(76px + 11px - 13px); inset-inline: 0; height: 26px; pointer-events: none; }
.nl-band-shuttle { position: absolute; top: 0; inset-inline-start: 0; width: 26px; height: 26px; opacity: 0; }
.nl-band-shuttle svg { width: 26px; height: 26px; }
.nl-band[data-shown] .nl-band-track { animation: nl-pass-x 6s cubic-bezier(.5,0,.5,1) infinite; }
.nl-band[data-shown] .nl-band-shuttle { animation: nl-pass-o 6s linear infinite; }
@keyframes nl-pass-x { 0% { transform: translateX(0); } 36%, 100% { transform: translateX(calc(100% - 26px)); } }
[dir=rtl] .nl-band[data-shown] .nl-band-track { animation-name: nl-pass-x-rtl; }
@keyframes nl-pass-x-rtl { 0% { transform: translateX(0); } 36%, 100% { transform: translateX(calc(-100% + 26px)); } }
@keyframes nl-pass-o { 0% { opacity: 0; } 4%, 34% { opacity: 1; } 40%, 100% { opacity: 0; } }
.nl-contact-body { padding-top: 60px; }
.nl-contact-body .nl-label { margin-bottom: 22px; }
.nl-h2-contact { max-width: 18ch; font-size: 64px; color: var(--paper); }
html[lang="en"] .nl-h2-contact { line-height: 1.04; }
.nl-contact-text { margin-top: 28px; max-width: 52ch; font-family: var(--body); font-size: 19px; line-height: 1.6; color: rgba(243,233,216,.8); }
.nl-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; }
.nl-cta { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: 9px; background: var(--paper); color: var(--brand); font-family: var(--body); font-size: 16px; font-weight: 700; transform: translate(var(--tx, 0px), var(--ty, 0px)); transition: transform .45s cubic-bezier(.16,1,.3,1), gap .3s ease; }
.nl-cta .nl-arr { font-size: 14px; }
.nl-cta::before { content: ''; position: absolute; inset: -7px; border-radius: 14px; border: 1px dashed rgba(230,185,162,.7); pointer-events: none; animation: nl-stitch 2.8s ease-in-out infinite; }
.nl-cta:hover { gap: 16px; color: var(--brand); }
.nl-mail { position: relative; padding-bottom: 3px; font-family: var(--mono); font-size: 14px; color: var(--paper); }
.nl-mail::after, .nl-foot::after { content: ''; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--d1); transform: scaleX(.35); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.nl-foot::after { transform: scaleX(0); }
[dir=rtl] .nl-mail::after, [dir=rtl] .nl-foot::after { transform-origin: right; }
.nl-mail:hover, .nl-foot:hover { color: #fff; }
.nl-mail:hover::after, .nl-foot:hover::after { transform: scaleX(1); }
.nl-footer { margin-top: 104px; }
.nl-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 30px 0; border-top: 1px solid rgba(243,233,216,.16); }
.nl-foot-brand { display: flex; align-items: center; gap: 11px; color: var(--paper); }
.nl-foot-brand img { display: block; width: 24px; height: 24px; object-fit: contain; }
.nl-foot-name { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: var(--head-ls); }
.nl-foot-tag { margin-inline-start: 8px; font-family: var(--body); font-size: 13px; color: rgba(243,233,216,.66); }
.nl-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.nl-foot { position: relative; font-family: var(--body); font-size: 13px; color: rgba(243,233,216,.8); }
.nl-copy { padding: 0 0 30px; font-family: var(--label); font-size: 12px; color: rgba(243,233,216,.62); }

/* narrow screens */
@media (max-width: 1100px) { .nl-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .nl-wrap { padding: 0 20px; }
  .nl-sec { padding-top: 76px; padding-bottom: 76px; scroll-margin-top: 132px; }
  #contact, .nl-pin { padding-top: 0; padding-bottom: 0; }
  .nl-thread, .nl-ghost { display: none; }
  .nl-g2, .nl-g3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nl-h2, .nl-h2-about, .nl-h2-why { font-size: 32px; }
  .nl-h2-contact { font-size: 40px; }
  .nl-vm-text { font-size: 23px; }
  .nl-readp { font-size: 18px; }
  .nl-sticky { position: static; }
  .nl-ind { flex-direction: column; align-items: flex-start; }
  .nl-marquee { width: 100%; }
  .nl-band-grid { grid-template-columns: repeat(20, minmax(0, 1fr)); }
  .nl-band-bead:nth-child(n+61) { display: none; }
}
@media (max-width: 600px) { .nl-g4 { grid-template-columns: minmax(0, 1fr); } .nl-art { padding-inline: 14px; } .nl-sys { width: 84px; } .nl-token { font-size: 10px; } }
/* the held steps become a plain list on narrow or short screens and with reduced motion */
@media print, (max-width: 860px), (max-height: 620px), (prefers-reduced-motion: reduce) {
  .nl-pin .nl-thread { display: none; }
  .nl-pin { height: auto; }
  .nl-pin-frame { position: relative; top: 0; height: auto; min-height: 0; padding: 96px 0; gap: 36px; overflow: visible; }
  .nl-ghost-pin { display: none; }
  .nl-rail { width: auto; max-width: 1200px; margin: 0 auto; padding: 0 44px; transform: none !important; }
  .nl-steps-list { flex-direction: column; gap: 18px; }
  .nl-step { width: auto; padding-inline-start: 40px; }
  .nl-bead { top: 34px; }
  .nl-track { top: 0; bottom: 0; inset-inline-start: 30px; width: 2px; height: auto; }
  .nl-track-fill { transform: scaleY(var(--p)); transform-origin: top !important; }
  .nl-shuttle { display: none; }
}
@media (max-width: 860px) { .nl-rail { padding: 0 20px; } }
/* reduced motion: everything in place, nothing loops or follows the pointer */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nl-sec *, .nl-sec *::before, .nl-sec *::after { animation: none !important; transition: none !important; }
  .nl-spot, .nl-doc-track { display: none; }
  .nl-lane { display: flex; gap: 6px; height: auto; justify-content: center; }
  .nl-token-track { display: contents; }
  .nl-token { position: static; opacity: 1; }
  .nl-ok { opacity: 1; transform: none; }
  .nl-tilt { transform: none !important; }
}
/* print: every block shown, nothing mid-entrance */
@media print {
  .nl-sec *, .nl-sec *::before, .nl-sec *::after { animation: none !important; transition: none !important; }
  .nl-label .nl-lab, .nl-w > span, .nl-up, .nl-cardwrap, .nl-point, .nl-app, .nl-rw { opacity: 1 !important; transform: none !important; filter: none !important; }
  .nl-dash, .nl-pline, .nl-vm-line, .nl-wv-line { transform: none !important; }
  .nl-spot, .nl-mq-btn { display: none; }
}
