/* ============================================================
   ETHBAT — company profile, "case file" edition
   Paper, ink, brass. Naskh display (Amiri) over Plex body.
   No cards, no counters, no icon grids. Motion is scroll-led
   and purposeful; see script.js.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    /* Palette taken from the Ethbat mark: teal gradient #58716c → #00596c and charcoal #292928 */
    --paper: #f3f4f1;
    --paper-2: #e9ece8;
    --paper-3: #dde2de;
    --sheet: #fbfcfa;
    --ink: #232726;
    --ink-2: #4b5452;
    --ink-3: #7a8482;
    --rule: rgba(35, 39, 38, 0.14);
    --rule-2: rgba(35, 39, 38, 0.32);
    --teal: #00596c;
    --teal-2: #24636c;
    --sage: #58716c;
    --teal-tint: rgba(0, 89, 108, 0.10);
    --brass: #0f6274;              /* accent (was brass): the logo teal */
    --brass-2: #00596c;
    --red: #0f6274;                /* stamp ink, in the brand teal */
    --red-tint: rgba(0, 89, 108, 0.09);
    --danger: #b03a31;
    --ok: #2f7a4f;
    --on-dark: #eef2f0;
    --shadow: 0 1px 0 rgba(35, 39, 38, 0.06), 0 14px 36px -18px rgba(0, 45, 54, 0.35);
    --logo-filter: none;

    --font-display: 'Zain', 'Tajarib', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-body: 'Zain', 'Tajarib', 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'Zain', 'Tajarib', 'IBM Plex Sans', system-ui, sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 68px;
    --wrap: 1120px;
    --gutter: 20px;
    --section: clamp(88px, 11vw, 150px);
}

html[lang="en"] {
    --font-display: 'Tajarib', 'IBM Plex Sans', system-ui, sans-serif;
    --font-body: 'Tajarib', 'IBM Plex Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
    --paper: #0c1516;
    --paper-2: #111c1e;
    --paper-3: #172527;
    --sheet: #122022;
    --ink: #e9efed;
    --ink-2: #aab8b5;
    --ink-3: #72837f;
    --rule: rgba(233, 239, 237, 0.12);
    --rule-2: rgba(233, 239, 237, 0.30);
    --teal: #5fb7c6;
    --teal-2: #86cbd6;
    --sage: #8fb3ad;
    --teal-tint: rgba(95, 183, 198, 0.12);
    --brass: #6cc1cf;
    --brass-2: #8fd3de;
    --red: #6cc1cf;
    --red-tint: rgba(108, 193, 207, 0.12);
    --danger: #e0655c;
    --ok: #6cc08f;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    --logo-filter: brightness(0) invert(0.92);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    transition: background-color 0.4s ease, color 0.4s ease;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
em { font-style: normal; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* Paper grain, very faint */
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.h2, .h3, .hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    text-wrap: balance;
}
.h2 { font-size: clamp(2rem, 1.1rem + 3vw, 3.6rem); line-height: 1.25; }
.h3 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); line-height: 1.4; }
html[lang="en"] .h2, html[lang="en"] .h3, html[lang="en"] .hero-title { letter-spacing: -0.01em; }

.sec-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.sec-n {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
    border: 1px solid var(--rule-2); border-radius: 50%;
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--brass);
}
.sec-n.light { border-color: rgba(238, 242, 240, 0.4); color: #9fd9e2; }
.sec-lede { margin-top: 16px; color: var(--ink-2); font-size: 1.05rem; max-width: 640px; }
html[lang="en"] .sec-n { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
    border: 1px solid var(--rule-2); border-radius: 4px;
    font-weight: 500; font-size: 0.98rem; line-height: 1.2;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-solid { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-text { border-color: transparent; padding-inline: 6px; color: var(--ink-2); }
.btn-text::after { content: "↓"; font-family: var(--font-mono); transition: transform 0.3s var(--ease); }
.btn-text:hover { color: var(--ink); }
.btn-text:hover::after { transform: translateY(3px); }
.btn:active { transform: translateY(1px); }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--nav-h);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: transform 0.4s var(--ease), border-color 0.3s ease, background-color 0.4s ease;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-logo-img { height: 40px; width: auto; filter: var(--logo-filter); }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; font-size: 0.93rem; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: var(--origin, right); transition: transform 0.3s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-lang { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-2); padding: 6px 8px; border: 1px solid var(--rule); border-radius: 3px; }
.nav-theme { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-2); border-radius: 50%; }
.nav-theme svg { width: 18px; height: 18px; }
.nav-theme:hover { color: var(--ink); background: var(--paper-2); }
[data-theme="light"] .ic-moon, [data-theme="dark"] .ic-sun { display: none; }
.nav-cta { padding: 9px 16px; font-size: 0.92rem; }
.nav-burger { display: none; width: 40px; height: 40px; position: relative; }
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-burger span:first-child { top: 15px; }
.nav-burger span:last-child { top: 24px; }
.nav-burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: calc(var(--nav-h) + 48px) 0 96px; color: var(--on-dark); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #0b1a1e url(media/hero-poster.jpg) center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-ready { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background:
    linear-gradient(to top, rgba(7, 24, 28, 0.92) 0%, rgba(7, 24, 28, 0.55) 42%, rgba(7, 24, 28, 0.18) 100%),
    linear-gradient(to left, rgba(7, 24, 28, 0.35), transparent 60%); }
html[dir="ltr"] .hero-shade { background:
    linear-gradient(to top, rgba(7, 24, 28, 0.92) 0%, rgba(7, 24, 28, 0.55) 42%, rgba(7, 24, 28, 0.18) 100%),
    linear-gradient(to right, rgba(7, 24, 28, 0.35), transparent 60%); }
.hero-inner { max-width: 820px; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 0.9rem; color: rgba(238, 242, 240, 0.78); margin-bottom: 26px; font-weight: 500; }
.hero-kicker .sep { width: 28px; height: 1px; background: var(--brass); }
.hero-title { font-size: clamp(2.6rem, 1.1rem + 5.4vw, 6rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 28px; }
.hero-line { display: block; }
.hero-lede { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); color: rgba(238, 242, 240, 0.86); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero .btn-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero .btn-solid:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.hero .btn-text { color: rgba(238, 242, 240, 0.85); }
.hero .btn-text:hover { color: #fff; }
.hero-scroll { position: absolute; bottom: 28px; inset-inline-end: calc((100% - min(100% - var(--gutter) * 2, var(--wrap))) / 2); width: 1px; height: 56px; background: rgba(238, 242, 240, 0.25); overflow: hidden; }
.hero-scroll span { position: absolute; inset-inline: 0; top: -100%; height: 100%; background: var(--brass); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Clients: a quiet wall of the firms, with the count as the headline ---------- */
.clients { padding: clamp(56px, 8vw, 110px) 0 0; }
.clients-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(28px, 4vw, 44px); padding-bottom: 18px; border-bottom: 1px solid var(--rule-2); }
.clients-count { display: grid; line-height: 1; }
.clients-count b { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 2rem + 8vw, 9rem); color: var(--teal); letter-spacing: -0.02em; }
.clients-count span { font-size: 0.95rem; color: var(--ink-3); margin-top: 6px; }
.clients-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); line-height: 1.35; }
.clients-head p { color: var(--ink-2); font-size: 0.98rem; max-width: 60ch; margin-top: 6px; }
.clients-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.clients-grid li { background: var(--paper); display: grid; grid-template-rows: 96px auto; align-items: center; justify-items: center; gap: 10px; padding: 22px 16px 18px; text-align: center; transition: background-color 0.3s var(--ease); }
.clients-grid li:hover { background: var(--sheet); }
.clients-grid img { max-height: 72px; max-width: 150px; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.05) opacity(0.78); transition: filter 0.35s var(--ease), transform 0.35s var(--ease); }
.clients-grid li:hover img { filter: none; transform: scale(1.04); }
[data-theme="dark"] .clients-grid img { filter: grayscale(1) invert(1) opacity(0.7); }
[data-theme="dark"] .clients-grid li:hover img { filter: grayscale(1) invert(1) opacity(1); }
.clients-grid span { font-size: 0.82rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 1024px) { .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    .clients-head { grid-template-columns: 1fr; align-items: start; gap: 8px; }
    .clients-count { grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 10px; }
    .clients-count b { font-size: 4rem; }
}
@media (max-width: 600px) { .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clients-grid li { grid-template-rows: 72px auto; padding: 16px 10px 14px; } .clients-grid img { max-height: 56px; max-width: 120px; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--rule); }

/* ---------- 3. Modules: eight names, one line each ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); counter-reset: m; }
.mod-grid li { background: var(--paper); padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 26px) clamp(24px, 2.6vw, 34px); display: grid; align-content: start; gap: 8px; transition: background-color 0.3s var(--ease); }
.mod-grid li:hover { background: var(--sheet); }
.mod-n { font-family: var(--font-display); font-weight: 700; color: var(--teal); font-size: 0.95rem; margin-bottom: 18px; }
.mod-grid h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35; }
.mod-grid p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.7; }
@media (max-width: 1024px) { .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mod-grid { grid-template-columns: 1fr; } .mod-n { margin-bottom: 8px; } }

/* ---------- 4. Apps ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--rule-2); border-radius: 6px; font-size: 0.95rem; font-weight: 500; transition: background-color 0.2s, border-color 0.2s; direction: ltr; }
.store svg { width: 20px; height: 20px; }
.store small { display: block; font-size: 0.68rem; font-weight: 400; color: var(--ink-3); line-height: 1.1; }
.store:hover { background: var(--paper-2); border-color: var(--ink); }

/* Phone mockup: every dimension is in em, and the em is 1/28 of the phone's width,
   so bezel, corners, type and spacing all scale together on any screen. */
.phone { --phone-w: 280px; width: var(--phone-w); font-size: calc(var(--phone-w) / 28); aspect-ratio: 9 / 18.6; border-radius: 4em; background: #121009; padding: 1em; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone-screen { height: 100%; border-radius: 3.1em; background: var(--sheet); overflow: hidden; display: flex; flex-direction: column; font-size: 1.28em; line-height: 1.5; position: relative; }
.phone-top { display: flex; justify-content: space-between; padding: 1.1em 1.4em 0.6em; font-size: 0.9em; color: var(--ink-3); font-family: var(--font-mono); }
.phone-greet { padding: 0.8em 1.4em 1.1em; }
.phone-greet small { display: block; color: var(--ink-3); font-size: 0.88em; }
.phone-greet b { font-family: var(--font-display); font-size: 1.6em; font-weight: 700; line-height: 1.3; }
.phone-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; padding: 0 1.1em 0.9em; }
.phone-kpis div { text-align: center; padding: 0.6em 0.3em; background: var(--paper-2); border-radius: 0.6em; }
.phone-kpis b { display: block; font-family: var(--font-display); font-size: 1.55em; }
.phone-kpis small { font-size: 0.85em; color: var(--ink-3); }
.phone-list { padding: 0 1.1em; display: grid; gap: 0.5em; }
.phone-list li { padding: 0.7em 0.9em; border: 1px solid var(--rule); border-radius: 0.6em; }
.phone-list li b { display: block; font-weight: 600; }
.phone-list li small { color: var(--ink-3); font-size: 0.9em; }
.phone-list li.now { border-color: var(--teal); background: var(--teal-tint); }
.phone-list li.ok small { color: var(--ok); }
.phone-notif { position: absolute; top: 0.8em; inset-inline: 0.8em; padding: 0.8em 0.9em; background: var(--teal); color: #fff; border-radius: 0.9em; box-shadow: var(--shadow); transform: translateY(-140%); opacity: 0; }
.phone-notif b { display: block; font-size: 1em; }
.phone-notif small { color: rgba(255, 255, 255, 0.75); font-size: 0.88em; }
.phone-notif.is-in { animation: notif 5s var(--ease) forwards; }
@keyframes notif { 0% { transform: translateY(-140%); opacity: 0; } 12%, 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-140%); opacity: 0; } }

/* ---------- 5. Articles: a calm grid of six clauses ---------- */
.terms { padding-bottom: 0; }
.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.articles-grid li { background: var(--paper); padding: clamp(22px, 2.4vw, 34px); display: grid; align-content: start; gap: 10px; transition: background-color 0.3s var(--ease); }
.articles-grid li:hover { background: var(--sheet); }
.articles-grid b { font-family: var(--font-display); font-weight: 700; color: var(--teal); font-size: 0.95rem; }
.articles-grid h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.4; }
.articles-grid p { color: var(--ink-2); font-size: 0.97rem; }
html[lang="en"] .articles-grid b { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.terms-foot { margin: 32px 0 var(--section); padding: 18px 22px; border-inline-start: 3px solid var(--teal); background: var(--teal-tint); color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

/* ---------- 7. FAQ ---------- */
.qa { width: 100%; }
.qa > div { padding: 24px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px clamp(36px, 6vw, 96px); }
.qa > div:last-child { border-bottom: 1px solid var(--rule); }
.qa dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.45; }
.qa dd { color: var(--ink-2); }

/* ---------- 8. Contact ---------- */
.contact { position: relative; color: var(--on-dark); isolation: isolate; border-top: 0 !important; padding-bottom: 28px; }
.contact-media { position: absolute; inset: 0; z-index: -1; background: #07181c url(media/contact-poster.jpg) center / cover no-repeat; }
.contact-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.contact-video.is-ready { opacity: 1; }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 24, 28, 0.94), rgba(7, 24, 28, 0.78) 60%, rgba(7, 24, 28, 0.96)); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact .h2 { color: #fff; margin: 0 0 16px; }
.contact-intro p { color: rgba(238, 242, 240, 0.82); max-width: 46ch; }
.contact-channels { display: grid; gap: 0; margin-top: 32px; max-width: 360px; }
.contact-channels > a, .contact-channels .channel-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(238, 242, 240, 0.18); transition: padding-inline-start 0.3s var(--ease); }
.contact-channels > :last-child { border-bottom: 1px solid rgba(238, 242, 240, 0.18); }
.contact-channels > a:hover, .contact-channels .channel-row:hover { padding-inline-start: 8px; }
.contact-channels small { color: rgba(238, 242, 240, 0.6); font-size: 0.82rem; }
.contact-channels b { font-weight: 500; }
/* Number rows: the number dials, the small tag beside it opens WhatsApp */
.channel-row b { display: flex; align-items: baseline; gap: 12px; }
.channel-row b a:hover { color: #9fd9e2; }
.channel-row .wa { font-weight: 400; font-size: 0.78rem; color: rgba(238, 242, 240, 0.6); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(238, 242, 240, 0.35); }
.channel-row .wa:hover { color: #9fd9e2; text-decoration-color: currentColor; }

/* The form sits on the dark film: no card, hairline fields, one teal button */
.contact-form { color: var(--on-dark); padding-top: 6px; }
.form-head { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(238, 242, 240, 0.25); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); }
.field { display: grid; gap: 4px; padding: 16px 0 6px; font-size: 0.86rem; color: rgba(238, 242, 240, 0.7); }
.field span { display: flex; justify-content: space-between; align-items: baseline; letter-spacing: 0.01em; }
.field span i { font-style: normal; font-size: 0.72rem; color: rgba(238, 242, 240, 0.45); }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 10px 0 12px; background: transparent; border: 0; border-bottom: 1px solid rgba(238, 242, 240, 0.32); border-radius: 0; color: #fff; font-size: 1.05rem; transition: border-color 0.25s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: rgba(238, 242, 240, 0.32); }
.field textarea { resize: vertical; min-height: 86px; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: #9fd9e2; box-shadow: 0 1px 0 #9fd9e2; }
.field input.is-invalid, .field textarea.is-invalid { border-bottom-color: #e0655c; box-shadow: 0 1px 0 #e0655c; }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #0d2a30 inset; transition: background-color 9999s; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-foot { margin-top: 22px; display: grid; gap: 16px; }
.turnstile-slot { min-height: 0; display: flex; justify-content: flex-start; }
.turnstile-slot:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.contact-submit { position: relative; background: #fff; color: var(--ink); border-color: #fff; }
.contact-submit:hover { background: #9fd9e2; border-color: #9fd9e2; color: var(--ink); }
.contact-submit .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
.contact-submit.is-loading .spinner { display: inline-block; }
.form-note { font-size: 0.85rem; color: rgba(238, 242, 240, 0.6); }
.form-feedback { font-size: 0.92rem; color: rgba(238, 242, 240, 0.8); min-height: 1.5em; }
.form-feedback.is-success { color: #8fe0b0; }
.form-feedback.is-error { color: #f0867d; }
@media (max-width: 720px) { .field-grid { grid-template-columns: 1fr; } .contact-submit { width: 100%; justify-content: center; } }

/* ---------- Footer ---------- */
/* Footer lives inside the contact scene, on the same dark film */
.footer { position: relative; z-index: 1; margin-top: clamp(64px, 8vw, 110px); padding-top: 40px; border-top: 1px solid rgba(238, 242, 240, 0.18); width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; font-size: 0.92rem; color: rgba(238, 242, 240, 0.78); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-logo { filter: brightness(0) invert(0.95) !important; }
.footer-brand p { margin-top: 14px; max-width: 32ch; color: rgba(238, 242, 240, 0.7); }
.footer-col { display: grid; align-content: start; gap: 8px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: rgba(238, 242, 240, 0.5); margin-bottom: 6px; }
.footer-col a { color: rgba(238, 242, 240, 0.78); }
.footer-col a:hover { color: #fff; }
.footer-lang a { font-family: var(--font-mono); font-size: 0.9rem; padding: 6px 10px; border: 1px solid rgba(238, 242, 240, 0.3); border-radius: 3px; justify-self: start; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; line-height: 1.7; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(238, 242, 240, 0.14); color: rgba(238, 242, 240, 0.55); font-size: 0.82rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion hooks (set by script.js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-stamp] { opacity: 0; transform: rotate(-3deg) scale(1.6); }
.js [data-stamp].is-in { opacity: 1; transform: rotate(-3deg) scale(1); transition: opacity 0.35s ease-out, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.js [data-rows] > * { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-rows].is-in > * { opacity: 1; transform: none; }
.js .hero-line { opacity: 0; transform: translateY(24px); }
.js .hero-line.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero-kicker, .js .hero-lede, .js .hero-actions { opacity: 0; transition: opacity 1s var(--ease) 0.5s; }
.js .hero.is-in .hero-kicker, .js .hero.is-in .hero-lede, .js .hero.is-in .hero-actions { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal], .js [data-stamp], .js [data-rows] > *,     .js [data-reveal], .js [data-rows] > *,     .hero-scroll span, .phone-notif.is-in { animation: none; }
    .phone-notif.is-in { transform: none; opacity: 1; }
    .hero-video, .contact-video { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-burger { display: block; }
    .nav-links.is-open {
        display: grid; position: fixed; top: var(--nav-h); inset-inline: 0; padding: 18px var(--gutter) 28px; gap: 4px;
        background: var(--paper); border-bottom: 1px solid var(--rule); font-size: 1.1rem;
    }
    .nav-links.is-open a { padding: 10px 0; border-bottom: 1px dashed var(--rule); }
    .contact-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .nav-cta { display: none; }
    .hero { padding-bottom: 72px; }
    .hero-scroll { display: none; }
    .sheet-head { align-items: start; }
    .toc li a { grid-template-columns: 28px 1fr; }
    .toc-p { display: none; }
    .ui-two { grid-template-columns: 1fr; }
    .ui-verdict { grid-template-columns: 1fr; }
    .phone { --phone-w: 240px; }
    .qa > div { grid-template-columns: 1fr; }
    .footer { margin-top: 48px; padding-top: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
    .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
    .footer-brand .footer-logo { height: 34px; }
    .footer-brand p { margin-top: 0; font-size: 0.85rem; }
    .footer-col { gap: 4px; font-size: 0.9rem; }
    .footer-col h4 { margin-bottom: 2px; }
    .footer-lang { grid-column: 1 / -1; }
    .footer-bottom { margin-top: 22px; padding-top: 14px; }
}

/* ============================================================
   SCROLL SCENES (Apple-style). Pinning is plain CSS sticky inside
   tall wrappers; script.js scrubs the timelines. With .static on
   <html> (no JS / reduced motion) everything lays out in flow.
   ============================================================ */

/* ---------- Progress line ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: var(--origin, right); }
html[dir="ltr"] .progress span { transform-origin: left; }

/* ---------- Nav over dark scenes ---------- */
.nav.is-on-dark { background: linear-gradient(to bottom, rgba(7, 24, 28, 0.55), rgba(7, 24, 28, 0)); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; color: var(--on-dark); }
.nav.is-on-dark .nav-logo-img { filter: brightness(0) invert(0.95); }
.nav.is-on-dark .nav-links { color: rgba(238, 242, 240, 0.78); }
.nav.is-on-dark .nav-links a:hover, .nav.is-on-dark .nav-links a.is-active { color: #fff; }
.nav.is-on-dark .nav-lang { color: rgba(238, 242, 240, 0.85); border-color: rgba(238, 242, 240, 0.3); }
.nav.is-on-dark .nav-theme { color: rgba(238, 242, 240, 0.85); }
.nav.is-on-dark .nav-theme:hover { background: rgba(238, 242, 240, 0.12); color: #fff; }
.nav.is-on-dark .nav-cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav.is-on-dark .nav-burger span { background: var(--on-dark); }
.nav.is-on-dark .nav-links.is-open { background: var(--paper); color: var(--ink-2); }

/* ---------- Hero (scrubbed by script) ---------- */
.hero-inner, .hero-media { will-change: transform, opacity; }

/* ---------- Film ---------- */
.film { position: relative; height: 340vh; background: var(--paper); }
.film-sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; display: grid; place-items: center; }
.film-frame { position: absolute; inset: 0; background: #07181c; clip-path: inset(10% 6% 10% 6% round 28px); transform: scale(0.97); will-change: clip-path, transform; }
.film-canvas, .film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-poster { z-index: 0; }
.film-canvas { z-index: 1; }
.film-shade { z-index: 2; }
.film-canvas { opacity: 0; transition: opacity 0.4s ease; }
.film-canvas.is-ready { opacity: 1; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 24, 28, 0.85), rgba(7, 24, 28, 0.25) 55%, rgba(7, 24, 28, 0.15)); opacity: 0.6; }
.film-lines { position: relative; z-index: 2; width: min(100% - var(--gutter) * 2, 900px); text-align: center; display: grid; }
.film-line { grid-area: 1 / 1; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.2rem + 4.2vw, 4.6rem); line-height: 1.3; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); opacity: 0; will-change: transform, opacity, filter; }
.film-line-last { color: #9fd9e2; }
.static .film { height: auto; }
.static .film-sticky { position: relative; height: auto; min-height: 70vh; padding: 10vh 0; }
.static .film-frame { clip-path: none; transform: none; }
.static .film-canvas { display: none; }
.static .film-lines { gap: 12px; }
.static .film-line { grid-area: auto; opacity: 1; }
@media (max-width: 720px) { .film { height: 280vh; } .film-frame { clip-path: inset(8% 4% 8% 4% round 20px); } }

/* ---------- Apps (pinned phone, copy swaps) ---------- */
.apps { padding-bottom: 0; }
.apps .sec-head { margin-bottom: 0; }
.apps-scene { position: relative; height: 260vh; }
.apps-sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; display: grid; align-items: center; overflow: hidden; }
.apps-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); align-items: center; }
.apps-copy { display: grid; }
.apps-step { grid-area: 1 / 1; max-width: 56ch; font-size: 1.04rem; will-change: transform, opacity, filter; }
.apps-step { pointer-events: none; }
.apps-step.is-current { pointer-events: auto; }
.apps-step[data-step="1"] { opacity: 0; }
.static .apps-step { pointer-events: auto; }
.apps-step .h3 { margin-bottom: 16px; }
.apps-step p + p { margin-top: 1em; }
.phones { display: grid; justify-items: center; perspective: 1400px; }
.phones .phone { grid-area: 1 / 1; will-change: transform, opacity; }
.phone-b { opacity: 0; pointer-events: none; }
.static .apps { padding-bottom: var(--section); }
.static .apps .sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.static .apps-scene { height: auto; }
.static .apps-sticky { position: relative; height: auto; display: block; }
.static .apps-grid { grid-template-columns: 1fr; gap: 40px; }
.static .apps-copy { gap: 48px; }
.static .apps-step { grid-area: auto; opacity: 1 !important; pointer-events: auto; transform: none !important; filter: none !important; }
.static .phones { grid-auto-flow: column; gap: 24px; }
.static .phones .phone { grid-area: auto; opacity: 1 !important; transform: none !important; }
@media (max-width: 1024px) {
    .apps-sticky { align-items: start; padding-top: calc(var(--nav-h) + 12px); }
    .apps-grid { grid-template-columns: 1fr; gap: 14px; align-content: start; }
    .phones { order: -1; }
    .phones .phone { --phone-w: min(150px, 36vw); }
    .apps-step { font-size: 0.88rem; line-height: 1.55; }
    .apps-step .h3 { font-size: 1.15rem; }
    .apps-step p + p { margin-top: 0.6em; }
    .apps-step .stores { margin-top: 14px; }
    .apps-step .store { padding: 6px 10px; font-size: 0.85rem; }
    .apps-step .h3 { margin-bottom: 10px; }
    .apps-scene { height: 240vh; }
    .static .phones { grid-auto-flow: row; }
}


/* ---------- Contact: frame grows to full bleed ---------- */
.contact-media { clip-path: inset(0 0 0 0 round 0); will-change: clip-path; }
.contact .contact-inner { position: relative; z-index: 1; }

/* ---------- Section heads: rise in (scrubbed) ---------- */
.sec-head .h2, .sec-head .sec-lede, .sec-head .sec-n { will-change: transform, opacity; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }


/* ---------- UI replicas (laptop screens) + stamps ---------- */
.stamp {
    display: inline-block; padding: 5px 12px; border: 2px solid var(--red); border-radius: 3px;
    color: var(--red); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.3;
    letter-spacing: 0.02em; transform: rotate(-3deg); background: var(--red-tint);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -0.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -0.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.stamp-final { border-color: var(--ok); color: var(--ok); background: rgba(47, 122, 79, 0.08); }
.stamp-inline { transform: rotate(-2deg); font-size: 0.85rem; padding: 2px 8px; border-width: 1.5px; margin-inline-start: 4px; }
html[lang="en"] .stamp { font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }

.ui { position: relative; background: var(--sheet); font-size: 0.86rem; line-height: 1.55; overflow: hidden; }
.ui-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.ui-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); }
.ui-bar b { margin-inline-start: 10px; font-weight: 500; color: var(--ink-3); font-size: 0.78rem; }
.ui-body { padding: 16px 18px 18px; }
.ui-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ui-two > div { min-width: 0; }
.ui-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ui-head strong { font-size: 1.15em; }
.ui-head small { color: var(--ink-3); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 0.85em; border: 1px solid var(--rule-2); color: var(--ink-2); white-space: nowrap; }
.tag-open { border-color: var(--teal); color: var(--teal); }
.tag-active { border-color: var(--teal); color: var(--teal); background: var(--teal-tint); }
.tag-ok { border-color: var(--ok); color: var(--ok); }
.ui-dl { display: grid; gap: 7px; }
.ui-dl div { display: grid; grid-template-columns: 6em 1fr; gap: 10px; padding-bottom: 7px; border-bottom: 1px dotted var(--rule); }
.ui-dl dt { color: var(--ink-3); }
.ui-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ui-files span { padding: 4px 10px; border: 1px solid var(--rule); border-radius: 3px; font-family: var(--font-mono); font-size: 0.88em; direction: ltr; }
.ui-actions { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.ui-actions b { padding: 7px 12px; background: var(--teal); color: #fff; border-radius: 3px; font-weight: 500; }
.ui-actions span { color: var(--ink-3); }
.ui-steps { display: flex; margin-top: 16px; }
.ui-steps li { flex: 1; text-align: center; padding: 8px 4px 0; border-top: 2px solid var(--rule); color: var(--ink-3); font-size: 0.92em; }
.ui-steps li.done { border-color: var(--ink-2); color: var(--ink-2); }
.ui-steps li.now { border-color: var(--teal); color: var(--ink); font-weight: 600; }
.ui-list li { display: grid; grid-template-columns: 3.6em 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dotted var(--rule); }
.ui-list time { font-family: var(--font-mono); color: var(--ink-3); direction: ltr; }
.ui-list small { display: block; color: var(--ink-3); }
.ui-list li.now { background: var(--teal-tint); margin-inline: -18px; padding-inline: 18px; border-radius: 3px; }
.ui-list li.done { opacity: 0.6; }
.ui-note { margin-top: 14px; padding: 12px 14px; border-inline-start: 3px solid var(--teal); background: var(--paper-2); }
.ui-note b { display: block; margin-bottom: 4px; }
.ui-note small { display: block; margin-top: 6px; color: var(--ink-3); }
.ui-tree li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--rule); min-width: 0; overflow-wrap: anywhere; }
.ui-tree li small { color: var(--ink-3); margin-inline-start: auto; white-space: nowrap; }
.ui-tree li .tag { margin-inline-start: 6px; }
.ui-tree li.dir { font-weight: 600; }
.ui-tree li.new { color: var(--teal); }
.ui-tree li.warn small { color: var(--danger); }
.ui-tree li.muted { color: var(--ink-3); }
.ui-verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ui-verdict div { padding: 10px 12px; background: var(--paper-2); border-radius: 4px; }
.ui-verdict small { display: block; color: var(--ink-3); font-size: 0.86em; }
.ui-verdict b { font-weight: 600; }
.ui-verdict .countdown { color: var(--teal); font-family: var(--font-display); font-size: 1.35em; }
.ui-log li { display: grid; grid-template-columns: 3.6em 1fr; gap: 10px; padding: 6px 0; border-top: 1px dotted var(--rule); }
.ui-log time { font-family: var(--font-mono); color: var(--ink-3); font-size: 0.9em; }
.ui-log .muted { color: var(--ink-3); }

/* ============================================================
   1. SCATTER: the pieces of a case gather into one file
   ============================================================ */
.scatter { padding-bottom: 0; }
.scatter .sec-head { margin-bottom: 0; }
.scatter-scene { position: relative; height: 420vh; }
.scatter-sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; display: grid; align-items: center; }
.scatter-inner { position: relative; display: grid; justify-items: center; text-align: center; }
.scatter-q { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4rem); line-height: 1.3; display: grid; min-height: 1.4em; margin-bottom: 24px; }
.scatter-q span { grid-area: 1 / 1; opacity: 0; will-change: transform, opacity, filter; }
.scatter-q2 { color: var(--teal); }
.scatter-stage { position: relative; width: min(100%, 920px); height: min(52vh, 460px); --spread: 1; }
.frag {
    position: absolute; left: 50%; top: 50%; width: 220px; padding: 12px 16px; text-align: start;
    background: var(--sheet); border: 1px solid var(--rule-2); box-shadow: var(--shadow); border-radius: 4px;
    transform: translate(-50%, -50%) translate(calc(var(--x, 0px) * var(--spread, 1)), calc(var(--y, 0px) * var(--spread, 1))) rotate(var(--r, 0deg)); opacity: 0; will-change: transform, opacity;
}
.frag small { display: block; font-size: 0.74rem; color: var(--ink-3); letter-spacing: 0.02em; }
.frag b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.file-card {
    position: absolute; left: 50%; top: 50%; width: 300px; padding: 22px 24px 20px; text-align: start;
    background: var(--sheet); border: 1px solid var(--teal); box-shadow: 0 30px 70px -30px rgba(0, 45, 54, 0.5); border-radius: 6px;
    transform: translate(-50%, -50%) scale(0.6); opacity: 0; will-change: transform, opacity;
}
.file-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); border-radius: 3px; pointer-events: none; }
.file-card small { display: block; font-size: 0.78rem; color: var(--ink-3); }
.file-card b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.2; color: var(--ink); }
.file-card span { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--ink-2); line-height: 1.6; }
.file-card .stamp { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 0.8rem; padding: 3px 9px; transform: rotate(-8deg); }
.scatter-note { max-width: 62ch; margin-top: 18px; opacity: 0; will-change: transform, opacity; font-size: 1.04rem; color: var(--ink-2); }
.scatter-note .sign { margin-top: 1.2em !important; padding-top: 14px; border-top: 1px solid var(--rule-2); display: grid; justify-items: center; }
.sign-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.sign-place { font-size: 0.88rem; color: var(--ink-3); }
.static .scatter { padding-bottom: var(--section); }
.static .scatter .sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.static .scatter-scene { height: auto; }
.static .scatter-sticky { position: relative; height: auto; display: block; }
.static .scatter-q span { opacity: 1; grid-area: auto; }
.static .scatter-stage { height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.static .frag, .static .file-card { position: static; transform: none; opacity: 1; width: auto; }
.static .file-card { grid-column: 1 / -1; }
.static .scatter-note { opacity: 1; }
@media (max-width: 720px) {
    .scatter-scene { height: 360vh; }
    .scatter-stage { height: min(46vh, 380px); }
    .frag { width: 150px; padding: 9px 12px; }
    .scatter-stage { --spread: 0.62; }
    .frag b { font-size: 0.92rem; }
    .file-card { width: 240px; padding: 16px 18px 14px; }
    .file-card b { font-size: 1.6rem; }
    .scatter-note { font-size: 0.95rem; }
}

/* ============================================================
   2. JOURNEY: pinned laptop + phone, steps light up in turn
   ============================================================ */
.case { padding-bottom: 0; }
.case .sec-head { margin-bottom: 0; }
.journey { position: relative; height: 460vh; }
.journey-sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; display: grid; grid-template-columns: minmax(280px, 0.7fr) 1.3fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: var(--nav-h); }
.journey-list { position: relative; padding-inline-start: 26px; }
.journey-bar { position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 2px; background: var(--rule); overflow: hidden; }
.journey-bar span { display: block; height: 100%; background: var(--teal); transform: scaleY(0); transform-origin: top; }
.journey-steps { display: grid; gap: 4px; }
.jstep { display: flex; gap: 14px; padding: 10px 0; opacity: 0.35; transition: opacity 0.4s var(--ease); }
.jstep .n { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--ink-3); padding-top: 7px; transition: color 0.4s; }
.jstep h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.45rem); line-height: 1.4; }
.jstep-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s var(--ease), opacity 0.5s; }
.jstep-body > p { overflow: hidden; color: var(--ink-2); line-height: 1.75; margin-top: 6px; max-width: 46ch; font-size: 0.98rem; }
.jstep-body > small, .jstep-body > time { display: block; overflow: hidden; margin-top: 6px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); }
.jstep.is-done { opacity: 0.55; }
.jstep.is-active { opacity: 1; }
.jstep.is-active .n { color: var(--teal); }
.jstep.is-active .jstep-body { grid-template-rows: 1fr; opacity: 1; }

.journey-device { position: relative; display: grid; place-items: center; perspective: 1600px; min-height: 480px; }
.journey-glow { position: absolute; width: 70%; height: 55%; border-radius: 50%; background: var(--teal-tint); filter: blur(70px); z-index: -1; }
.laptop { position: relative; width: 100%; max-width: 860px; transform-style: preserve-3d; will-change: transform; }
.laptop-screen { position: relative; aspect-ratio: 16 / 9.2; border-radius: 14px 14px 4px 4px; padding: 10px; background: linear-gradient(145deg, #2a2d35, #0b0c10 40%, #1d2027); box-shadow: 0 0 0 1.5px #3a3e48 inset, 0 40px 80px -24px rgba(7, 24, 28, 0.55); overflow: hidden; }
.laptop-screen::before { content: ""; position: absolute; top: 3px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #050608; z-index: 5; }
.laptop-base { height: 14px; margin: 0 -3%; border-radius: 0 0 12px 12px; background: linear-gradient(#2a2d35, #15171c); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.laptop-base::after { content: ""; display: block; width: 18%; height: 4px; margin: 0 auto; border-radius: 0 0 6px 6px; background: #0b0c10; }
.jscreen { position: absolute; inset: 10px; border-radius: 6px; overflow: hidden; background: var(--paper-2); opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.jscreen.is-past { transform: translateY(-18px) scale(0.98); }
.jscreen.is-active { opacity: 1; transform: none; }
.jscreen .ui { position: static; margin: 0; border: 0; box-shadow: none; border-radius: 0; height: 100%; font-size: clamp(0.72rem, 0.55rem + 0.5vw, 0.9rem); }
.jscreen .ui-body { padding: 18px 22px; }
.jscreen .ui-two { grid-template-columns: 1fr 1fr; }

.jphone { position: absolute; bottom: -6%; inset-inline-end: -4%; width: 190px; aspect-ratio: 9 / 19; border-radius: 30px; padding: 7px; background: linear-gradient(145deg, #2a2d35, #0b0c10 40%, #1d2027); box-shadow: 0 0 0 1.5px #3a3e48 inset, 0 30px 60px -20px rgba(7, 24, 28, 0.6); transform: translateY(40px) rotate(-6deg); opacity: 0; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); will-change: transform, opacity; z-index: 3; }
html[dir="ltr"] .jphone { transform: translateY(40px) rotate(6deg); }
.jphone.is-on { opacity: 1; transform: translateY(0) rotate(-3deg); }
html[dir="ltr"] .jphone.is-on { transform: translateY(0) rotate(3deg); }
.jphone-island { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 58px; height: 16px; border-radius: 12px; background: #050608; z-index: 5; }
.jphone-screen { position: absolute; inset: 7px; border-radius: 24px; overflow: hidden; background: var(--sheet); }
.pscreen { position: absolute; inset: 0; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 0.66rem; opacity: 0; transform: translateY(16px); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease); }
.pscreen.is-active { opacity: 1; transform: none; }
.pscreen .phone-top { padding: 10px 6px 2px; font-size: 0.6rem; }
.ps-head small { display: block; color: var(--ink-3); font-size: 0.6rem; }
.ps-head b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.ps-field { padding: 7px 9px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.ps-field small { display: block; color: var(--ink-3); font-size: 0.58rem; }
.ps-field span { font-weight: 600; }
.ps-amount { padding: 10px; border-radius: 10px; background: var(--paper-2); }
.ps-amount small { display: block; color: var(--ink-3); font-size: 0.58rem; }
.ps-amount b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.ps-amount i { font-style: normal; font-size: 0.7rem; color: var(--ink-3); }
.ps-btn { margin-top: auto; padding: 9px; text-align: center; border-radius: 8px; background: var(--teal); color: #fff; font-weight: 600; }
.ps-toast { padding: 7px 9px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 0.6rem; opacity: 0; transform: translateY(6px); transition: opacity 0.4s 0.9s, transform 0.4s 0.9s; }
.ps-toast.ps-ok { background: var(--ok); color: #fff; }
.pscreen.is-active .ps-toast { opacity: 1; transform: none; }
.pscreen.is-active .ps-btn { animation: press 2.4s ease-in-out 0.6s infinite; }
@keyframes press { 0%, 100% { transform: scale(1); } 8% { transform: scale(0.96); } 16% { transform: scale(1); } }

.static .case { padding-bottom: var(--section); }
.static .case .sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.static .journey { height: auto; }
.static .journey-sticky { position: relative; height: auto; padding-top: 0; align-items: start; }
.static .jstep { opacity: 1; }
.static .jstep-body { grid-template-rows: 1fr; opacity: 1; }
.static .jphone { display: none; }
.static .journey-device { position: sticky; top: calc(var(--nav-h) + 24px); }

@media (max-width: 1024px) {
    .journey { height: 300vh; }
    .jstep { transition: opacity 0.25s, transform 0.25s var(--ease); }
    .jscreen { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
    .journey-list { padding-inline-start: 18px; }
    .journey-sticky { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 28px; padding-top: var(--nav-h); }
    .journey-device { order: -1; min-height: 0; }
    .laptop { max-width: 520px; }
    .jphone { width: 130px; inset-inline-end: 0; bottom: -4%; }
    .journey-steps { display: grid; }
    .jstep { grid-area: 1 / 1; opacity: 0 !important; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s var(--ease); padding: 0; }
    .jstep.is-active { opacity: 1 !important; transform: none; }
    .journey-list { min-height: 150px; }
    .jstep-body > p { font-size: 0.92rem; max-width: none; }
    .static .journey-sticky { grid-template-rows: auto auto; }
    .static .journey-device { position: static; }
    .static .jstep { grid-area: auto; opacity: 1 !important; transform: none; padding: 10px 0; }
}
@media (max-width: 720px) {
    .jscreen .ui-body { padding: 10px 12px; }
    .jscreen .ui { font-size: 0.6rem; }
    .jscreen .ui-two { grid-template-columns: 1fr; gap: 8px; }
    .jphone { display: none; }
    .journey-device { min-height: 0; }
    .jstep h3 { font-size: 1.05rem; }
}

/* Wide screens: let the column grow so the page does not float in a corner */
@media (min-width: 1700px) { :root { --wrap: 1280px; } body { font-size: 18px; } }

/* ============================================================
   REVEAL: the real dashboard rises into a full screen
   The one strong colour moment: the logo teal, full bleed.
   ============================================================ */
.reveal { position: relative; color: #fff; background: radial-gradient(120% 90% at 50% 0%, #0d6c7d 0%, #00495a 42%, #062429 100%); overflow-x: clip; }
.reveal-scene { position: relative; height: 460vh; }
.reveal-sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; display: grid; align-content: start; overflow: hidden; padding-top: calc(var(--nav-h) + 3vh); }
.reveal-head { text-align: center; position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; }
.reveal-stage { position: relative; width: min(100%, 600px, calc((100svh - var(--nav-h) - 210px) * 1.16)); aspect-ratio: 650 / 560; }
.pf-stage { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.pf-sheet image, .pf-folder image, .pf-cover image { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28)); }
.pf-head-bg { fill: #f0ece3; }
.pf-head { font-family: var(--font-display); font-weight: 700; font-size: 17px; fill: #3a3631; }
.pf-head-sm { font-family: var(--font-body); font-weight: 400; font-size: 9px; fill: #7a7368; }
.pf-seal { fill: #0f6274; opacity: 0; mix-blend-mode: multiply; filter: url(#pf-ink); }
.pf-shock { fill: none; stroke: #fff; stroke-width: 6; opacity: 0; }
.pf-flash { fill: #fff; opacity: 0; }
.pf-die rect { fill: #2a2d35; } .pf-die circle { fill: #1b1711; } .pf-die-face { fill: #0f6274 !important; opacity: 0.85; }
.reveal-mark-wrap { position: absolute; inset: 0; margin: auto; width: 34%; aspect-ratio: 490.84 / 488.09; will-change: transform, opacity; }
.reveal-mark { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); }
.rm-sheet, .rm-dot { transform-box: fill-box; transform-origin: center; will-change: transform, opacity; }
.reveal-caps { display: grid; min-height: 4.2em; }
.reveal-cap { grid-area: 1 / 1; opacity: 0; will-change: transform, opacity, filter; }
.reveal-cap span { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); line-height: 1.15; color: #fff; }
.reveal-cap small { display: block; max-width: 56ch; margin: 12px auto 0; font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem); line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.static .rm-sheet, .static .rm-dot { opacity: 1 !important; transform: none !important; }
.static .pf-stage { display: none; }
.static .reveal-cap { display: none; } .static .reveal-cap.is-last { display: block; opacity: 1; }
.reveal-kicker { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.15; color: #fff; }
.reveal-kicker small { display: block; max-width: 56ch; margin: 14px auto 0; font-family: var(--font-body); font-weight: 400; font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem); line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.reveal-frame { align-self: start; width: min(100% - 40px, 1180px, calc((100svh - var(--nav-h) - 60px) * 1.7)); margin: 4vh auto 0; transform-origin: 50% 0%; will-change: transform; position: relative; }
.reveal-frame::before { content: ""; position: absolute; inset: 10% 8% -6%; background: radial-gradient(closest-side, rgba(120, 220, 235, 0.35), transparent); filter: blur(40px); z-index: -1; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.browser-bar { display: flex; gap: 7px; padding: 11px 14px; background: #e8ecea; direction: ltr; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd3d0; }
.browser-bar span:nth-child(1) { background: #ff5f57; } .browser-bar span:nth-child(2) { background: #febc2e; } .browser-bar span:nth-child(3) { background: #28c840; }
.browser img { display: block; width: 100%; height: auto; }
.static .reveal-scene { height: auto; }
.static .reveal-sticky { position: relative; height: auto; padding: calc(var(--nav-h) + 48px) 0 72px; }
@media (max-width: 720px) {
    .reveal-scene { height: 380vh; }
    .reveal-stage { width: calc(100% - 8px); }
    .reveal-caps { min-height: 3.4em; }
    .reveal-frame { width: calc(100% - 24px); margin-top: 28px; }
    .browser { border-radius: 8px; }
    .browser-bar { padding: 7px 10px; } .browser-bar span { width: 8px; height: 8px; }
}

/* Tour: real screenshots fill the laptop */
.jscreen { background: #fff; }
.jscreen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Scatter plays once on entry, no long pin */
.scatter-scene { height: auto; }
.scatter-sticky { position: relative; height: auto; min-height: 100vh; min-height: 100lvh; padding: 6vh 0 10vh; }
@media (max-width: 720px) { .scatter-scene { height: auto; } }

/* One face across the whole site: Tajarib, headings in Bold (700) like the clients title */
h1, h2, h3, h4, .h2, .h3, .hero-title, .reveal-kicker, .clients-title, .film-line, .scatter-q, .jstep h3, .articles-grid h3, .qa dt, .mod-grid h3, .sign-name, .phone-greet b {
    font-family: var(--font-display); font-weight: 700;
}

button, input, textarea, select { font-family: var(--font-body); }
