/* =========================================================
   Triasols - Design System & Styles
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #07060b;
  --bg-2: #0d0a17;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --primary: #5b34b0;
  --primary-deep: #4b2a8a;
  --accent: #a64ca6;
  --lavender: #c9b0dc;

  --text: #f5f2fb;
  --muted: #a8a1bb;
  --faint: #6f6883;

  --grad: linear-gradient(120deg, #c9b0dc 0%, #a64ca6 45%, #7b4fe0 100%);
  --grad-btn: linear-gradient(120deg, #7b4fe0, #a64ca6);

  --font-ar: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Jost", "Alexandria", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(80px, 11vw, 140px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
/* Latin text keeps LTR glyph order but aligns like its RTL parent (start = right) */
.en { font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; text-align: match-parent; }
/* the padding gives Arabic marks and dots (أ، إ، ُ، ء) room inside the painted gradient; on inline text it doesn't move anything */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-block: .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Background ambience: stars + grid */
.bg-ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-ambient::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 10% 70%, rgba(201,176,220,.5), transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, rgba(201,176,220,.35), transparent);
  background-size: 600px 600px;
  opacity: .6;
}
.bg-ambient::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .35;
}

/* ---------- 3. Buttons & shared parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(-4px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(166, 76, 166, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(166, 76, 166, .9); }
.btn-ghost { border: 1px solid var(--border-strong); background: var(--surface); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--lavender); background: var(--surface-2); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--lavender);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 46px); margin-block: 18px 16px; }
.section-head p { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease), background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(166, 76, 166, .16), transparent 60%);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.icon-box {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(123, 79, 224, .25), rgba(166, 76, 166, .15));
  border: 1px solid rgba(201, 176, 220, .2); color: var(--lavender); margin-bottom: 22px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

/* ---------- 4. Header ---------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled, .menu-open .header { background: rgba(7, 6, 11, .8); backdrop-filter: blur(16px) saturate(140%); border-color: var(--border); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; direction: ltr; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.footer .logo img { height: 56px; }

.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 14px; font-size: 15px; color: var(--muted); border-radius: 999px; transition: color .3s, background .3s; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); position: relative; }
.menu-toggle span { position: absolute; inset-inline: 12px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; position: relative; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; }
.hero-glow.g1 { width: 620px; height: 620px; background: rgba(91, 52, 176, .45); top: -200px; inset-inline-start: -160px; animation: float 14s ease-in-out infinite; }
.hero-glow.g2 { width: 480px; height: 480px; background: rgba(166, 76, 166, .28); bottom: -160px; inset-inline-end: -120px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }

.bg-word {
  position: absolute; inset-inline: 0; bottom: -4vw; z-index: -1; pointer-events: none;
  font-family: var(--font-en); font-weight: 700; font-size: 22vw; line-height: 1; text-align: center; direction: ltr;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); white-space: nowrap; letter-spacing: -.02em;
}
.hero-grid > *, .about-grid > *, .faq-grid > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.9vw, 62px); font-weight: 800; line-height: 1.3; margin-block: 24px 22px; }
.hero-lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); max-width: 560px; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: var(--font-en); font-size: 28px; font-weight: 600; direction: ltr; text-align: right; }
.hero-trust div > span { font-size: 13px; color: var(--muted); }

@keyframes blink { 50% { opacity: 0; } }

@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- 6. Marquee (tech stack) ---------- */
.marquee-wrap { padding-block: 34px; border-block: 1px solid var(--border); background: rgba(255,255,255,.015); }
.marquee-title { text-align: center; color: var(--faint); font-size: 13px; margin-bottom: 20px; }
.marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-en); font-size: 22px; font-weight: 500; color: var(--faint); white-space: nowrap; transition: color .3s; }
.marquee-track span:hover { color: var(--lavender); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 7. About / values ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.about-text .section-head { margin-bottom: 28px; }
.about-text p { color: var(--muted); }
.about-text p + p { margin-top: 16px; }
.about-text .btn { margin-top: 32px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: 36px; }
.values .card:nth-child(even) { top: 36px; }
.values h3 { font-size: 18px; margin-bottom: 8px; }
.values p { color: var(--muted); font-size: 14.5px; }

/* ---------- 8. Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento .card { display: flex; flex-direction: column; min-height: 250px; }
.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; min-height: auto; flex-direction: row; align-items: center; gap: 24px; }
.bento .span-3 .icon-box { margin: 0; }
.bento .span-3 .card-link { margin: 0 auto 0 0; }
.bento h3 { font-size: 20px; margin-bottom: 10px; }
.bento p { color: var(--muted); font-size: 15px; }
.bento .tags { margin-top: auto; padding-top: 22px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--lavender); white-space: nowrap; }
.card-link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card-link .icon { transform: translateX(-4px); }
.bento .featured { background: linear-gradient(150deg, rgba(91, 52, 176, .3), rgba(166, 76, 166, .1) 60%, var(--surface)); }
.big-num { position: absolute; left: 24px; top: 6px; font-family: var(--font-en); font-size: 120px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); z-index: -1; }

/* ---------- 9. Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industry { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.industry .icon-box { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.industry .icon { width: 20px; height: 20px; }
.industry h3 { font-size: 16px; font-weight: 600; }

/* ---------- 10. Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.process::before { content: ""; position: absolute; top: 34px; inset-inline: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
.step { text-align: center; padding: 0 8px; position: relative; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-en); font-size: 20px; font-weight: 600; background: var(--bg-2); border: 1px solid var(--border-strong);
  position: relative; transition: border-color .4s, box-shadow .4s;
}
.step:hover .step-num { border-color: var(--accent); box-shadow: 0 0 30px -5px var(--accent); }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- 11. Stats ---------- */
.stats-band { position: relative; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(120deg, rgba(75, 42, 138, .55), rgba(7, 6, 11, .9) 60%), var(--bg-2); }
.stats-band::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(166, 76, 166, .25); filter: blur(100px); inset-inline-end: -100px; top: -100px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-en); font-size: clamp(44px, 6vw, 72px); font-weight: 700; line-height: 1.1; direction: ltr; color: transparent; -webkit-text-stroke: 1.5px var(--lavender); }
.stat-num sup { font-size: .5em; color: #fff; -webkit-text-stroke: 0; vertical-align: top; }
.stat p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ---------- 12. Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { padding: 0; }
.work-thumb { aspect-ratio: 4 / 3; position: relative; overflow: hidden; padding: 28px 28px 0; display: flex; align-items: flex-end; }
.work-thumb.t1 { background: linear-gradient(140deg, #3b2370, #12101e); }
.work-thumb.t2 { background: linear-gradient(140deg, #5a2a5e, #12101e); }
.work-thumb.t3 { background: linear-gradient(140deg, #243a6b, #12101e); }
.mock { width: 100%; height: 88%; background: #0f0c1a; border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 12px; transition: transform .7s var(--ease); direction: ltr; }
.work-card:hover .mock { transform: translateY(-10px) scale(1.02); }
.mock-bar { display: flex; gap: 5px; margin-bottom: 12px; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.mock-row { height: 9px; border-radius: 5px; background: var(--surface-2); margin-bottom: 8px; }
.mock-row.w60 { width: 60%; }
.mock-row.w40 { width: 40%; }
.mock-row.accent { background: var(--grad); width: 30%; height: 14px; margin-top: 14px; }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mock-cols i { height: 46px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.work-info { padding: 24px 26px 28px; }
.work-info .tags { margin-bottom: 12px; }
.work-info h3 { font-size: 19px; margin-bottom: 6px; }
.work-info p { color: var(--muted); font-size: 14.5px; }
.center-cta { text-align: center; margin-top: 48px; }

/* ---------- 13. Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model h3 { font-size: 20px; margin-bottom: 10px; }
.model > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.model ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding-block: 8px; border-top: 1px dashed var(--border); color: #d9d3e6; }
.model ul .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 5px; }
.model.highlight { border-color: rgba(166, 76, 166, .5); background: linear-gradient(170deg, rgba(166, 76, 166, .16), var(--surface) 55%); }
.badge { position: absolute; top: 22px; inset-inline-end: 22px; font-size: 12px; padding: 3px 12px; border-radius: 999px; background: var(--grad-btn); }

/* ---------- 14. Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { display: flex; flex-direction: column; margin: 0; }
.testimonial blockquote { margin: 0 0 24px; font-size: 15.5px; color: #ded8ea; flex: 1; }
.quote-mark { font-family: Georgia, serif; font-size: 64px; line-height: .6; color: var(--accent); display: block; margin-bottom: 18px; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-btn); display: grid; place-items: center; font-weight: 700; }
.person b { display: block; font-size: 15px; }
.person small { color: var(--muted); }

/* ---------- 15. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.plus { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; transition: transform .4s var(--ease), background .3s; }
.plus::before, .plus::after { content: ""; position: absolute; top: 50%; inset-inline: 9px; height: 1.5px; margin-top: -.75px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq .answer { color: var(--muted); padding-bottom: 22px; max-width: 640px; }

/* ---------- 16. CTA ---------- */
.cta-box { position: relative; text-align: center; border-radius: var(--radius-lg); padding: clamp(56px, 8vw, 100px) var(--gutter); overflow: hidden; isolation: isolate; border: 1px solid var(--border-strong); background: radial-gradient(ellipse at 50% 120%, rgba(166, 76, 166, .45), transparent 60%), linear-gradient(180deg, rgba(91, 52, 176, .35), rgba(7, 6, 11, .6)); }
.cta-box .bg-word { font-size: 15vw; bottom: auto; top: 50%; transform: translateY(-50%); }
.cta-box h2 { font-size: clamp(30px, 5vw, 54px); max-width: 760px; margin: 0 auto 18px; }
.cta-box p { color: var(--muted); max-width: 560px; margin: 0 auto 36px; font-size: 17px; }
.cta-box .hero-cta { justify-content: center; margin-top: 0; }

/* ---------- 17. Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 72px 28px; margin-top: var(--section-y); background: linear-gradient(180deg, transparent, rgba(75, 42, 138, .12)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-about p { color: var(--muted); font-size: 14.5px; margin-top: 20px; max-width: 320px; }
.footer h4 { font-size: 15px; margin-bottom: 18px; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: var(--muted); font-size: 14.5px; transition: color .3s; }
.footer-links a:hover { color: var(--lavender); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14.5px; }
.contact-list li + li { margin-top: 12px; }
.contact-list .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.contact-list a:hover { color: var(--lavender); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, color .3s; color: var(--muted); }
.socials a:hover { border-color: var(--lavender); color: var(--text); }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--faint); }

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- 18. Reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: block; position: fixed; top: var(--header-h); inset-inline: 0; height: calc(100dvh - var(--header-h));
    background: rgba(7, 6, 11, .97); padding: 24px var(--gutter);
  }
  .nav.open ul { flex-direction: column; gap: 4px; }
  .nav.open a { font-size: 20px; padding: 14px 16px; color: var(--text); }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .about-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .work-grid, .models, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span-2, .bento .span-3 { grid-column: auto; }
  .bento .span-3 { flex-direction: column; align-items: flex-start; }
  .bento .span-3 .card-link { margin: 0; }
  .bento .card { min-height: auto; }
  .values { grid-template-columns: 1fr; padding-bottom: 0; }
  .values .card:nth-child(even) { top: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .work-grid, .models, .testimonials, .industries { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 22px; }
}

@media (max-width: 720px) { .logo img { height: 38px; } }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: var(--faint); transition: color .3s; }
.footer-legal a:hover { color: var(--lavender); }

/* footer polish */
.footer .logo { display: inline-flex; }
.footer-grid { grid-template-columns: 1.35fr .75fr 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); }
.footer h4 { position: relative; padding-bottom: 12px; margin-bottom: 20px; }
.footer h4::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--grad-btn); }
.footer-about p { max-width: 340px; }
.contact-list li span b { display: block; color: var(--text); font-weight: 500; margin-bottom: 2px; }
.socials .icon.fill { fill: currentColor; stroke: none; }
.socials a[aria-label="WhatsApp"]:hover { border-color: #25d366; color: #25d366; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
