/* ==========================================================================
   Kaizen Group — Landing page
   Brand source: Kaizen Brand Guidelines (PIXEL Std.) + Marketing kit
   Primary #00B6AF · Ink #0B1518 · Paper #F3F4EF · Goldenrod #FFCF74 · Pomegranate #EE302F
   ========================================================================== */

@font-face { font-family: "Avenir Arabic"; src: url("../fonts/avenir-arabic-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Avenir Arabic"; src: url("../fonts/avenir-arabic-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Avenir Arabic"; src: url("../fonts/avenir-arabic-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: dark;

  /* Primitive */
  --teal-300: #5FE0D9;
  --teal-400: #1FCBC3;
  --teal-500: #00B6AF;
  --teal-600: #009690;
  --teal-700: #007A75;
  --teal-900: #063F3C;
  --ink-950: #071012;
  --ink-900: #0B1518;
  --ink-850: #0F1C20;
  --ink-800: #132428;
  --ink-700: #1B3237;
  --paper-50: #FAFAF7;
  --paper-100: #F3F4EF;
  --paper-200: #E7E9E2;
  --paper-300: #D6DAD1;
  --gold: #FFCF74;
  --red: #EE302F;
  --red-soft: #FF6B6A;

  /* Semantic */
  --bg: var(--ink-900);
  --surface: var(--ink-850);
  --surface-2: var(--ink-800);
  --text: var(--paper-100);
  --text-muted: #A3B4B6;
  --text-subtle: #7F9497;
  --line: rgb(243 244 239 / 0.09);
  --line-strong: rgb(243 244 239 / 0.16);
  --accent: var(--teal-500);
  --on-accent: var(--ink-900);
  --accent-text-light: var(--teal-700);
  --focus: var(--teal-300);

  /* Type — digits stay Latin (lnum) everywhere */
  --font: "Avenir Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --fs-display: clamp(2.6rem, 1.2rem + 5.6vw, 6rem);
  --fs-h2: clamp(2rem, 1.25rem + 3vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-lead: clamp(1.06rem, 0.98rem + 0.4vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Space & shape */
  --gutter: clamp(16px, 5vw, 56px);
  --container: 1240px;
  --section-y: clamp(88px, 7vw + 48px, 168px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.85;
  font-feature-settings: "lnum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--teal-500); color: var(--ink-900); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible, .form :focus-visible { outline-color: var(--teal-700); }

.skip-link {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: 999px; font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }
.light { background: var(--paper-100); color: var(--ink-900); --text-muted: #4E5F62; --line: rgb(11 21 24 / 0.1); --line-strong: rgb(11 21 24 / 0.18); color-scheme: light; }

.num { font-variant-numeric: lining-nums tabular-nums; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Sections that only animate while on screen */
[data-live]:not(.is-live) *, [data-live]:not(.is-live) *::before, [data-live]:not(.is-live) *::after { animation-play-state: paused !important; }

/* ---------- Icons ---------- */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-flip { transform: scaleX(-1); }

/* ---------- Shared motion helpers ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; transform: scale(1.04); } }
@keyframes prog { to { transform: scaleX(1); } }
@keyframes rotate-ang { to { --ang: 360deg; } }
@keyframes kb { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(-2.5%, -1.5%); } }
@keyframes trace { to { stroke-dashoffset: -1; } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* Rotating light along the border */
.glow-border { position: relative; isolation: isolate; }
.glow-border::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, rgb(95 224 217 / .0) 66%, var(--teal-300) 80%, rgb(95 224 217 / 0) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rotate-ang var(--glow-speed, 6s) linear infinite;
}
.light .glow-border::before { background: conic-gradient(from var(--ang), transparent 0 62%, var(--teal-600) 80%, transparent 92%); }


/* ==========================================================================
   Problem: five vendors pulling a project apart (from the live site)
   ========================================================================== */
/* Without Kaizen the world is grey and out of sync; Goldenrod (brand secondary) is the only
   warning accent. Teal is held back for the Solution section, where everything connects. */
.problem { overflow: hidden; background: radial-gradient(70% 60% at 22% 45%, rgb(243 244 239 / .035), transparent 62%), var(--bg); }
.problem::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgb(243 244 239 / .07) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(60% 60% at 25% 45%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 25% 45%, #000, transparent 75%); }
.problem-grid { position: relative; display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
.pains { display: grid; gap: 12px; margin-top: 36px; }
.pain {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .5s, background-color .5s, transform .6s var(--ease-out);
}
.pain .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgb(243 244 239 / .06); color: var(--text-muted); transition: background-color .4s, color .4s; }
.pain p { flex: 1; font-weight: 700; font-size: 1.06rem; line-height: 1.7; padding-top: 6px; }
.pain .n { align-self: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--text-subtle); transition: color .4s; }
.pain .bar { position: absolute !important; inset-inline: 0; bottom: 0; height: 2px; background: linear-gradient(to left, var(--gold), rgb(255 207 116 / .15)); transform: scaleX(0); transform-origin: right; }
.pain.is-hot { border-color: rgb(255 207 116 / .32); background: linear-gradient(to left, rgb(255 207 116 / .06), var(--surface) 70%); transform: translateX(-6px); }
.pain.is-hot .ic { background: rgb(255 207 116 / .12); color: var(--gold); }
.pain.is-hot .n { color: var(--gold); }
.pain.is-hot .bar { animation: prog 2.8s linear forwards; }

.chaos { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
.chaos svg.lines { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.chaos .spoke { fill: none; stroke: rgb(243 244 239 / .2); stroke-width: 1.2px; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; animation: dash 16s linear infinite; }
.chaos .cross { fill: none; stroke: rgb(243 244 239 / .07); stroke-width: 1px; stroke-dasharray: 2 8; vector-effect: non-scaling-stroke; }
.chaos .sig { fill: rgb(243 244 239 / .5); }
.chaos .sig.gold { fill: var(--gold); filter: drop-shadow(0 0 3px rgb(255 207 116 / .7)); }
@keyframes dash { to { stroke-dashoffset: -280; } }
.chaos .node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -30px); z-index: 2;
  display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .86rem; font-weight: 700; color: var(--text-muted); width: 120px; will-change: transform;
}
.chaos .node .ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-subtle); box-shadow: 0 12px 30px -16px #000; transition: border-color .4s, color .4s, box-shadow .4s; }
.chaos .node.hit .ic { border-color: rgb(255 207 116 / .55); color: var(--gold); box-shadow: 0 0 0 6px rgb(255 207 116 / .08), 0 12px 30px -16px #000; }
.chaos .node .ic .i { width: 24px; height: 24px; }
.chaos .you {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; font-weight: 800; line-height: 1.5; font-size: 1rem;
  background: radial-gradient(circle at 50% 35%, var(--ink-700), var(--surface) 72%); border: 1px dashed rgb(243 244 239 / .28);
  box-shadow: 0 20px 50px -20px #000;
}
.chaos .you small { display: block; font-weight: 400; font-size: .78rem; color: var(--text-muted); }
.chaos .you .ring { position: absolute; top: -1px; right: -1px; bottom: -1px; left: -1px; border-radius: 50%; border: 1px solid rgb(243 244 239 / .14); animation: ripple 3.2s var(--ease-out) infinite; }
.chaos .you .ring + .ring { animation-delay: 1.6s; }
.chaos .you.hit { animation: hit .45s var(--ease-out); }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@keyframes hit { 40% { transform: translate(-50%, -50%) scale(1.05); border-color: rgb(255 207 116 / .6); } }
.chaos .alert {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: rgb(19 36 40 / .94); border: 1px solid var(--line-strong); color: var(--paper-200); font-size: .8rem; font-weight: 700;
  box-shadow: 0 12px 26px -14px #000; animation: alert 3s var(--ease-out) forwards;
}
.chaos .alert::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgb(255 207 116 / .16); }
@keyframes alert {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.7); }
  12% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  78% { opacity: 1; transform: translate(-50%, -150%); }
  100% { opacity: 0; transform: translate(-50%, -190%); }
}
@supports not (aspect-ratio: 1) { .chaos { height: 0; padding-bottom: 100%; } }
@media (max-width: 520px) { .chaos .node { width: 92px; font-size: .78rem; } .chaos .node .ic { width: 50px; height: 50px; border-radius: 16px; } .chaos .you { width: 112px; height: 112px; font-size: .92rem; } }
@media (prefers-reduced-motion: reduce) { .chaos .spoke, .chaos .you .ring { animation: none; } }


/* Cursor spotlight */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity var(--t-med);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(0 182 175 / .13), transparent 42%);
}
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* Word reveal for headings */
.split .w { display: inline-block; overflow: hidden; padding: .14em .03em .24em; margin: -.14em -.03em -.24em; vertical-align: bottom; }
.split .wi { display: inline-block; transform: translateY(108%) rotate(4deg); transition: transform .95s var(--ease-out); transition-delay: calc(var(--wi) * 70ms); }
.split.is-in .wi { transform: none; }

/* Shimmering accent text */
.shimmer, .shimmer .wi {
  background: linear-gradient(90deg, var(--teal-500) 0%, var(--teal-300) 18%, #E9FFFD 28%, var(--teal-300) 38%, var(--teal-500) 56%, var(--teal-500) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5.5s linear infinite;
}
.shimmer:has(.wi) { background: none; animation: none; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }

/* ---------- Section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.light .eyebrow { color: var(--accent-text-light); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow .idx { font-weight: 700; letter-spacing: .14em; opacity: .7; font-size: 12px; }

.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; margin-top: 18px; }
.h2 em { font-style: normal; color: var(--accent); }
.light .h2 em { color: var(--accent-text-light); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.9; max-width: 62ch; margin-top: 18px; text-wrap: pretty; }
.section-head { display: grid; gap: 0; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.split { grid-template-columns: 1fr; align-items: end; gap: 24px; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.15fr .85fr; } .section-head.split .lead { margin-top: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-med), border-color var(--t-med), color var(--t-med), box-shadow var(--t-med);
  isolation: isolate; overflow: hidden;
}
.btn .i { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .i-go { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: var(--accent); box-shadow: 0 10px 30px -10px rgb(0 182 175 / .55); }
.btn-primary::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .35) 50%, transparent 65%); transform: translateX(120%); transition: transform .8s var(--ease-out); }
.btn-primary:hover::after { transform: translateX(-120%); }
.btn-primary:hover { --btn-bg: var(--teal-400); box-shadow: 0 14px 40px -10px rgb(0 182 175 / .7); }
.btn-ghost:hover { --btn-bd: var(--accent); --btn-bg: rgb(0 182 175 / .08); }
.light .btn-ghost, .form .btn-ghost { --btn-bd: rgb(11 21 24 / .22); }
.light .btn-ghost:hover, .form .btn-ghost:hover { --btn-bd: var(--teal-700); --btn-bg: rgb(0 122 117 / .06); }
.btn-dark { --btn-bg: var(--ink-900); --btn-fg: var(--paper-100); --btn-bd: var(--ink-900); }
.btn-dark:hover { --btn-bg: var(--ink-700); }
.btn-dark .i { color: var(--teal-400); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
/* WhatsApp actions follow the brand: teal outline, the glyph itself stays WhatsApp's */
.btn-wa { --btn-bg: rgb(0 182 175 / .1); --btn-fg: var(--paper-100); --btn-bd: rgb(0 182 175 / .55); }
.btn-wa .i { color: var(--teal-300); }
.btn-wa:hover { --btn-bg: rgb(0 182 175 / .2); --btn-bd: var(--teal-400); }
.form .btn-wa { --btn-bg: var(--ink-900); --btn-fg: #fff; --btn-bd: var(--ink-900); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal-300), var(--teal-500)); transform-origin: right center; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background-color var(--t-med), border-color var(--t-med);
}
/* Solid on scroll: a translucent bar turns grey over the light sections */
.site-header.is-scrolled { background: var(--ink-900); border-bottom-color: var(--line); box-shadow: 0 12px 30px -18px rgb(0 0 0 / .55); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: inline-flex; align-items: center; flex: none; }
.brand img { width: 168px; height: auto; }
@media (max-width: 599px) { .brand img { width: 140px; } }
/* the logo in the top corner: a light runs along the K, and a soft shine passes over the whole logo */
.brand-trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  fill: none; stroke: var(--teal-300); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .09 .91;
  animation: trace 7s linear infinite; filter: drop-shadow(0 0 3px rgb(95 224 217 / .9)); }
.brand::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgb(95 224 217 / .55) 46%, rgb(214 255 252 / .95) 50%, rgb(95 224 217 / .55) 54%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: 150% 0;
  -webkit-mask: url("../brand/kaizen-on-dark.svg?v=38") center / contain no-repeat; mask: url("../brand/kaizen-on-dark.svg?v=38") center / contain no-repeat;
  animation: brand-shine 6s ease-in-out 1.2s infinite; }
@keyframes brand-shine { 0% { background-position: 150% 0; } 35%, 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .brand-trace, .brand::after { display: none; } }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; color: var(--text-muted); font-weight: 700; font-size: .95rem; transition: color var(--t-fast), background-color var(--t-fast); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); background: rgb(243 244 239 / .07); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-primary { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); }
.menu-btn .i { width: 22px; height: 22px; }
@media (min-width: 1000px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .header-actions .btn-primary { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 150; background: var(--ink-950);
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px;
  opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility var(--t-med);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu .top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header-h) - 20px); }
.mobile-menu nav { flex: 1; display: flex; align-items: center; }
.mobile-menu ol { display: grid; gap: 6px; width: 100%; counter-reset: m; }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0; font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 800; line-height: 1.4;
  border-bottom: 1px solid var(--line); transform: translateY(14px); opacity: 0;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow) var(--ease-out), color var(--t-fast);
}
.mobile-menu li a::before { counter-increment: m; content: "0" counter(m); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.mobile-menu li a:hover { color: var(--accent); }
.mobile-menu.is-open li a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 50ms; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 100ms; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 150ms; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 200ms; }
.mobile-menu .bottom { display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  /* the text sits in the middle of the space under the header: equal room above and below */
  --hero-gap: clamp(32px, 5vw, 64px);
  padding-top: calc(var(--header-h) + var(--hero-gap)); padding-bottom: var(--hero-gap); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; background: var(--ink-950) center/cover no-repeat; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero-media.is-live { background-image: none !important; }
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--ink-900) 2%, rgb(11 21 24 / .55) 38%, rgb(11 21 24 / .25) 65%, rgb(11 21 24 / .7) 100%),
    linear-gradient(to left, rgb(11 21 24 / .94) 0%, rgb(11 21 24 / .7) 45%, rgb(11 21 24 / .25) 80%);
}
.hero-content { position: relative; display: grid; gap: 40px; align-items: end; }
@media (min-width: 1000px) { .hero-content { grid-template-columns: 1fr auto; } }
.hero h1 { margin-top: 0; font-size: var(--fs-display); font-weight: 800; line-height: 1.22; letter-spacing: -0.015em; max-width: 13ch; text-wrap: balance; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { margin-top: 24px; font-size: var(--fs-lead); color: var(--paper-200); max-width: 46ch; line-height: 1.9; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* phones: the two hero buttons as one even pair — same width, same height */
@media (max-width: 599px) {
  .hero-ctas { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .hero-ctas .btn { min-height: 52px; padding: 12px 10px; gap: 8px; font-size: .95rem; white-space: nowrap; }
}
@media (max-width: 369px) { .hero-ctas { grid-template-columns: 1fr; } }

.reel-card { display: none; width: 300px; padding: 16px; border-radius: var(--r-lg); background: rgb(11 21 24 / .62); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (min-width: 1000px) { .reel-card { display: block; } }
.reel-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reel-card .live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); font-weight: 700; }
.reel-card .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); color: rgb(31 203 195 / .5); animation: pulse-dot 1.8s infinite; }
.reel-card .title { margin-top: 10px; font-weight: 800; font-size: 1.02rem; line-height: 1.6; min-height: 3.2em; }
.reel-card .client { color: var(--text-muted); font-size: .88rem; }
.reel-card .bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 14px; }
.reel-card .bars i { height: 3px; border-radius: 3px; background: rgb(243 244 239 / .16); overflow: hidden; position: relative; }
.reel-card .bars i::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: right; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); transition: background-color var(--t-fast), border-color var(--t-fast); }
.icon-btn:hover { background: rgb(243 244 239 / .08); border-color: var(--accent); }
.icon-btn .i { width: 18px; height: 18px; }

.hub { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
.hub svg.lines { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.hub .spin { transform-box: view-box; transform-origin: 50% 50%; animation: spin 40s linear infinite; }
.hub .spin.slow { animation-duration: 70s; }
.hub .spin.rev { animation-direction: reverse; animation-duration: 22s; }
.hub .ring { fill: none; stroke: rgb(0 182 175 / .22); stroke-width: .2; }
.hub .ring.dashed { stroke-dasharray: .4 1.4; stroke: rgb(0 182 175 / .35); }
.hub .comet { fill: var(--teal-300); filter: drop-shadow(0 0 1.2px var(--teal-300)); }
.hub .comet.dim { fill: rgb(95 224 217 / .6); }
.hub .comet.gold { fill: var(--gold); filter: drop-shadow(0 0 1px var(--gold)); }
.hub .spoke { fill: none; stroke: rgb(0 182 175 / .55); stroke-width: .3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hub.is-in .spoke { animation: draw 1.2s var(--ease-out) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hub .pulse { fill: none; stroke: var(--teal-300); stroke-width: .9; stroke-linecap: round; stroke-dasharray: .1 .9; stroke-dashoffset: .1; opacity: 0; animation: travel 3s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * .5s + 1.4s); filter: drop-shadow(0 0 1px var(--teal-300)); }
.hub .pulse.out { stroke: #fff; stroke-width: .55; animation-delay: calc(var(--i) * .5s + 2.9s); }
@keyframes travel { 0% { stroke-dashoffset: .1; opacity: 0; } 8% { opacity: 1; } 58% { opacity: 1; stroke-dashoffset: -.9; } 59%, 100% { opacity: 0; stroke-dashoffset: -.9; } }
.hub .core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.hub .core .face {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 30%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, var(--ink-700), var(--ink-900)); border: 1px solid rgb(0 182 175 / .45);
  box-shadow: 0 0 0 10px rgb(0 182 175 / .05), 0 0 80px rgb(0 182 175 / .28); animation: breathe 3s ease-in-out infinite;
}
.hub .core .face svg { width: 52%; height: auto; aspect-ratio: 110.8 / 108.2; }
.hub .core .face::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 42%, rgb(255 255 255 / .18) 50%, transparent 58%); animation: shine 4.5s ease-in-out infinite; }
.hub .core .ripple { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 30%; border: 1px solid rgb(0 182 175 / .6); animation: ripple 3s var(--ease-out) infinite; }
.hub .core .ripple + .ripple { animation-delay: 1.5s; }
@keyframes breathe { 50% { box-shadow: 0 0 0 14px rgb(0 182 175 / .07), 0 0 120px rgb(0 182 175 / .45); } }
@keyframes shine { 0%, 50% { transform: translateX(-55%); } 100% { transform: translateX(55%); } }
.hub .sat { position: absolute; transform: translate(50%, -50%); display: grid; justify-items: center; gap: 8px; width: 120px; text-align: center; font-size: .86rem; font-weight: 700; opacity: 0; scale: .85; transition: opacity var(--t-slow) var(--ease-out), scale var(--t-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.hub.is-in .sat { opacity: 1; scale: 1; }
.hub .sat .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid rgb(0 182 175 / .45); color: var(--accent); animation: sat-ping 3s ease-out infinite, bob 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .5s + 1.4s), calc(var(--i, 0) * -1s); }
.hub .sat .ic .i { width: 22px; height: 22px; }
@keyframes sat-ping { 0% { box-shadow: 0 0 0 0 rgb(95 224 217 / .55); border-color: var(--teal-300); background: rgb(0 182 175 / .22); } 22% { box-shadow: 0 0 0 12px rgb(95 224 217 / 0); } 40%, 100% { border-color: rgb(0 182 175 / .45); background: var(--surface-2); } }

/* ==========================================================================
   05 — Process: a light runs the rail and wakes each step
   ========================================================================== */
.process { overflow: hidden; }
.process::before { content: ""; position: absolute; inset: -56px; --g: 56px; pointer-events: none; background-image: linear-gradient(rgb(11 21 24 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(11 21 24 / .045) 1px, transparent 1px); background-size: 56px 56px; animation: grid-shift 30s linear infinite; -webkit-mask-image: radial-gradient(80% 70% at 50% 55%, #000, transparent 80%); mask-image: radial-gradient(80% 70% at 50% 55%, #000, transparent 80%); }
@keyframes grid-shift { to { transform: translate(calc(var(--g) * -1), var(--g)); } }
.process .container { position: relative; }
.steps-wrap { position: relative; }
.steps { position: relative; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; } }
.steps-rail { display: none; }
@media (min-width: 900px) {
  .steps-rail { display: block; position: absolute; left: 32px; right: 32px; top: 31px; height: 2px; background: var(--line-strong); border-radius: 2px; }
  .steps-rail .fill { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 2px; background: linear-gradient(270deg, var(--teal-700), var(--teal-500)); transform-origin: right; transform: scaleX(var(--rail, 0)); }
  .steps-rail .comet { position: absolute; inset: -12px 0; overflow: hidden; }
  .steps-rail .comet i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; will-change: transform; }
  .steps-rail .comet i::before { content: ""; position: absolute; top: 50%; left: 100%; width: 170px; height: 4px; margin-top: -2px; border-radius: 4px; background: linear-gradient(90deg, var(--ink-900) 0, var(--teal-400) 12%, rgb(0 182 175 / 0) 100%); }
  .steps-rail .comet i::after { content: ""; position: absolute; top: 50%; left: 100%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-500); box-shadow: 0 0 0 5px rgb(0 182 175 / .18), 0 0 18px 4px rgb(31 203 195 / .7); }
}
.step { position: relative; }
.step .badge {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--paper-50); border: 1px solid var(--line-strong); color: var(--teal-700);
  transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med);
}
.step.is-active .badge { background: var(--ink-900); color: var(--teal-400); border-color: var(--ink-900); }
.step .badge .i { width: 26px; height: 26px; }
.step .badge.ping { animation: badge-ping 1s var(--ease-out); }
.step .badge.ping .i { animation: icon-pop 1s var(--ease-out); }
@keyframes badge-ping {
  0% { box-shadow: 0 0 0 0 rgb(0 182 175 / .6); transform: scale(1); }
  25% { transform: scale(1.12); background: var(--teal-500); color: var(--ink-900); border-color: var(--teal-500); }
  100% { box-shadow: 0 0 0 22px rgb(0 182 175 / 0); transform: scale(1); }
}
@keyframes icon-pop { 30% { transform: scale(1.25) rotate(-10deg); } }
.step .no { display: block; margin-top: 22px; font-weight: 700; letter-spacing: .14em; font-size: 12px; color: var(--teal-700); }
.step h3 { margin-top: 6px; font-size: var(--fs-h3); font-weight: 800; }
.step p { margin-top: 6px; color: var(--text-muted); line-height: 1.8; }
@media (max-width: 899px) {
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding-bottom: 8px; }
  .step .no { grid-column: 2; margin-top: 0; }
  .step .badge { grid-row: span 3; }
  .step h3, .step p { grid-column: 2; }
  .step:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 31px; top: 68px; bottom: -14px; width: 2px; background: linear-gradient(to bottom, var(--teal-500), var(--line-strong)); }
}
.process-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(40px, 5vw, 64px); padding: 22px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -36px rgb(11 21 24 / .4); }
.process-cta p { flex: 1 1 280px; font-weight: 700; font-size: 1.1rem; }

/* ==========================================================================
   FAQ + live chat preview
   ========================================================================== */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq { display: grid; gap: 10px; align-content: start; }
.faq details { border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease-out); }
.faq details:hover { transform: translateX(-4px); }
.faq details[open] { border-color: rgb(0 122 117 / .45); box-shadow: 0 16px 40px -28px rgb(11 21 24 / .35); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; font-weight: 800; font-size: 1.08rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-100); color: var(--teal-700); transition: transform var(--t-med) var(--ease-out), background-color var(--t-med), color var(--t-med); }
.faq details[open] summary .pm { transform: rotate(135deg); background: var(--ink-900); color: var(--teal-400); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 22px 20px; color: var(--text-muted); font-size: 1.02rem; line-height: 1.9; }

/* Chat preview: the FAQ plays as a conversation — the client asks, Kaizen types, then answers */
.chat-demo { margin-top: 28px; max-width: 440px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgb(11 21 24 / .5); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink-900); color: var(--paper-100); }
.chat-head .av { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-700); }
.chat-head .av svg { width: 17px; height: auto; aspect-ratio: 110.8 / 108.2; }
.chat-head b { font-size: .95rem; }
.chat-head .st { margin-inline-start: auto; font-size: .78rem; font-weight: 700; color: var(--teal-300); opacity: 0; transform: translateY(4px); transition: opacity var(--t-med), transform var(--t-med) var(--ease-out); }
.chat-demo.is-typing .chat-head .st { opacity: 1; transform: none; }
.chat-demo.is-typing .chat-head .av { box-shadow: 0 0 0 2px var(--teal-500); color: rgb(31 203 195 / .6); animation: pulse-dot 1.4s infinite; }
.chat-body { height: 270px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; background: #EEF1EC radial-gradient(rgb(0 122 117 / .08) 1px, transparent 1px) 0 0 / 18px 18px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
.bubble { max-width: 84%; padding: 9px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.7; animation: bubble-in .45s var(--ease-out) both; box-shadow: 0 4px 12px -8px rgb(11 21 24 / .4); }
.bubble.q { align-self: flex-end; background: var(--teal-500); color: var(--ink-900); border-end-end-radius: 4px; font-weight: 700; }
.bubble.a { align-self: flex-start; background: #fff; color: var(--ink-900); border: 1px solid var(--line); border-end-start-radius: 4px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-600); animation: typing 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
/* the question being asked in the chat lights up in the list beside it */
.faq details.is-asked:not([open]) { border-color: rgb(0 182 175 / .55); box-shadow: 0 0 0 3px rgb(0 182 175 / .12), 0 14px 34px -26px rgb(0 122 117 / .6); }
.faq details.is-asked:not([open]) summary .pm { background: var(--teal-500); color: var(--ink-900); }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-600); animation: typing 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; background: radial-gradient(60% 60% at 80% 20%, rgb(0 182 175 / .16), transparent 65%), var(--ink-950); }
.contact-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact h2 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); font-weight: 800; line-height: 1.3; text-wrap: balance; margin-top: 18px; }
.contact-ways { display: grid; gap: 10px; margin-top: 30px; }
.contact-ways a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--paper-200); font-weight: 700; transition: color var(--t-fast); }
.contact-ways a:hover { color: var(--accent); }
.contact-ways .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgb(243 244 239 / .06); color: var(--accent); }

.form { padding: clamp(22px, 3vw, 40px); border-radius: var(--r-xl); background: var(--paper-50); color: var(--ink-900); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); --text-muted: #4E5F62; }
.form h3 { font-size: 1.4rem; font-weight: 800; }
.form .hint { color: var(--text-muted); margin-top: 4px; }
.fields { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 700; font-size: .95rem; }
.field label .opt { color: var(--text-muted); font-weight: 400; font-size: .85rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #D3D8D0; background: #fff; color: var(--ink-900); font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007A75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; padding-inline-end: 16px; padding-inline-start: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #AEB8AC; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgb(0 122 117 / .14); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: right; }
.field .err { display: none; align-items: center; gap: 6px; color: #B42318; font-size: .88rem; font-weight: 700; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #D92D20; }
.field.invalid .err { display: flex; }
.form .submit { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form .submit .btn { flex: 1 1 220px; }
.form .note { color: var(--text-muted); font-size: .88rem; flex: 1 1 220px; line-height: 1.7; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success .ok { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgb(0 122 117 / .12); color: var(--teal-700); }
.form-success .ok .i { width: 34px; height: 34px; }
.form-success h3 { margin-top: 18px; }
.form-success p { color: var(--text-muted); margin-top: 6px; }
.form-success .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.form.is-sent .form-body { display: none; }
.form.is-sent .form-success { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--line); padding-top: clamp(56px, 6vw, 88px); padding-bottom: 28px; }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .about img { width: 210px; }
.site-footer .about p { margin-top: 16px; color: var(--text-muted); max-width: 36ch; line-height: 1.9; }
.site-footer h4 { font-size: .95rem; font-weight: 800; color: var(--paper-100); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer li a, .site-footer li span { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--text-muted); transition: color var(--t-fast); }
.site-footer li a:hover { color: var(--accent); }
.site-footer li .i { color: var(--accent); width: 18px; height: 18px; }
.legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; color: var(--text-subtle); font-size: .88rem; line-height: 1.8; }
.legal .ids { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal .ids span b { color: var(--text-muted); font-weight: 700; letter-spacing: .02em; }

/* ==========================================================================
   WhatsApp assistant (brand colors, WhatsApp glyph unchanged)
   ========================================================================== */
.fab {
  position: fixed; z-index: 96; inset-inline-start: 22px; bottom: 22px; width: 62px; height: 62px; border-radius: 50%;
  display: none; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--teal-400), var(--teal-700)); box-shadow: 0 16px 34px -12px rgb(0 182 175 / .75), inset 0 1px 0 rgb(255 255 255 / .25);
  opacity: 0; transform: translateY(16px) scale(.9); transition: transform var(--t-med) var(--ease-out), opacity var(--t-med);
}
.fab.is-visible { opacity: 1; transform: none; }
.fab:hover { transform: scale(1.07); }
.fab::before, .fab::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 2px solid var(--teal-400); animation: fab-ring 2.6s var(--ease-out) infinite; pointer-events: none; }
.fab::after { animation-delay: 1.3s; }
.fab.is-open::before, .fab.is-open::after { animation: none; opacity: 0; }
@keyframes fab-ring { from { transform: scale(1); opacity: .75; } to { transform: scale(1.75); opacity: 0; } }
.fab .i { position: absolute; width: 30px; height: 30px; transition: transform .45s var(--ease-out), opacity .3s; }
.fab .ic-x { width: 24px; height: 24px; opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab.is-open .ic-wa { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab.is-open .ic-x { opacity: 1; transform: none; }
.fab .dot { position: absolute; top: 4px; inset-inline-end: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink-900); color: rgb(255 207 116 / .6); animation: pulse-dot 1.8s infinite; transition: transform var(--t-med); }
.fab.seen .dot { transform: scale(0); }
@media (min-width: 760px) { .fab { display: grid; } }
@media (min-width: 760px) {  }

.wa-panel {
  position: fixed; z-index: 97; inset-inline-start: 22px; bottom: 98px; width: min(380px, calc(100vw - 32px)); max-height: min(700px, calc(100svh - 120px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--ink-900); color: var(--paper-100);
  border: 1px solid rgb(0 182 175 / .35); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(0 0 0 / .2);
  opacity: 0; transform: translateY(16px) scale(.94); transform-origin: bottom right; transition: opacity .3s, transform .45s var(--ease-out);
}
.wa-panel[hidden] { display: none; }
.wa-panel.is-open { opacity: 1; transform: none; }
.wa-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); overflow: hidden; }
.wa-head::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(110deg, transparent 40%, rgb(255 255 255 / .12) 50%, transparent 60%); animation: shine 5s ease-in-out infinite; pointer-events: none; }
.wa-head .av { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-900); border: 1px solid rgb(95 224 217 / .4); }
.wa-head .av svg { width: 22px; height: auto; aspect-ratio: 110.8 / 108.2; }
.wa-head .online { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 12px; height: 12px; border-radius: 50%; background: #3BE07A; border: 2px solid var(--teal-800, #065A55); }
.wa-head b { display: block; font-size: 1.02rem; }
.wa-head .status { font-size: .8rem; color: rgb(243 244 239 / .8); }
.wa-head .wa-close { margin-inline-start: auto; position: relative; z-index: 1; border-color: rgb(243 244 239 / .3); }
.wa-body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--ink-950) radial-gradient(rgb(0 182 175 / .07) 1px, transparent 1px) 0 0 / 18px 18px; }
.msg { align-self: flex-start; max-width: 88%; padding: 10px 14px; border-radius: 16px; border-end-start-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: .95rem; line-height: 1.7; }
.msg.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg.greet { display: none; }
.wa-panel.ready .msg.typing { display: none; }
.wa-panel.ready .msg.greet { display: block; animation: bubble-in .45s var(--ease-out) both; }
.wa-qs { display: grid; gap: 8px; margin-top: 4px; }
.wa-qs li { opacity: 0; }
.wa-panel.ready .wa-qs li { opacity: 1; animation: bubble-in .45s var(--ease-out) both; }
.wa-panel.ready .wa-qs li:nth-child(1) { animation-delay: .15s; } .wa-panel.ready .wa-qs li:nth-child(2) { animation-delay: .22s; } .wa-panel.ready .wa-qs li:nth-child(3) { animation-delay: .29s; }
.wa-panel.ready .wa-qs li:nth-child(4) { animation-delay: .36s; } .wa-panel.ready .wa-qs li:nth-child(5) { animation-delay: .43s; } .wa-panel.ready .wa-qs li:nth-child(6) { animation-delay: .5s; }
.wa-panel.ready .wa-qs li:nth-child(7) { animation-delay: .57s; } .wa-panel.ready .wa-qs li:nth-child(8) { animation-delay: .64s; } .wa-panel.ready .wa-qs li:nth-child(9) { animation-delay: .71s; }
.wa-qs button {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px; border-radius: 14px; text-align: start;
  background: rgb(0 182 175 / .08); border: 1px solid rgb(0 182 175 / .28); color: var(--paper-100); font-weight: 700; font-size: .93rem; line-height: 1.5;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.wa-qs button span { flex: 1; }
.wa-qs button .i { width: 18px; height: 18px; color: var(--teal-300); }
.wa-qs button .go { opacity: .5; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); }
.wa-qs button:hover { background: rgb(0 182 175 / .18); border-color: var(--teal-400); transform: translateX(-3px); }
.wa-qs button:hover .go { opacity: 1; transform: translateX(-4px); }
.wa-foot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px 12px; background: var(--ink-900); color: var(--text-subtle); font-size: .78rem; }
.wa-foot .i { width: 14px; height: 14px; color: var(--teal-400); }
@media (max-width: 759px) { .wa-panel { inset-inline: 12px; width: auto; bottom: calc(86px + env(safe-area-inset-bottom)); max-height: calc(100svh - 120px); transform-origin: bottom center; } }

/* Mobile dock: one clear main action, WhatsApp beside it with the brand glyph */
.mobile-bar {
  position: fixed; z-index: 90; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; gap: 6px; padding: 6px;
  border-radius: 20px; background: rgb(9 18 21 / .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgb(243 244 239 / .1); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .8), inset 0 1px 0 rgb(243 244 239 / .06);
  transform: translateY(150%); transition: transform var(--t-med) var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 50px; padding-inline: 14px; border-radius: 14px; font-size: 1rem; font-weight: 800; gap: 8px; }
.mobile-bar .btn-primary { flex: 1 1 auto; white-space: nowrap; font-size: .95rem; padding-inline: 12px; }
.mobile-bar .btn-primary .i { width: 18px; height: 18px; }
.mobile-bar .btn-wa { flex: 0 0 auto; padding-inline: 12px; --btn-bg: rgb(243 244 239 / .05); --btn-fg: var(--paper-100); --btn-bd: rgb(243 244 239 / .14); box-shadow: none; }
.mobile-bar .btn-wa .wa-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(140deg, var(--teal-400), var(--teal-700)); color: #fff; }
.mobile-bar .btn-wa .wa-dot .i { width: 16px; height: 16px; color: #fff; }
.mobile-bar .btn-wa:active, .mobile-bar .btn-primary:active { transform: scale(.97); }
@media (max-width: 374px) { .mobile-bar .btn-wa .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (min-width: 760px) { .mobile-bar { display: none; } }


/* ==========================================================================
   Layout rule for media on this page: every card image sits in normal flow and
   carries its own width/height, so a card never depends on CSS aspect-ratio
   to get a height (older iPhone Safari ignored aspect-ratio and collapsed
   absolutely-positioned images to zero height).
   ========================================================================== */

/* ---------- Hero additions ---------- */
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1.32; }
.hero h1 .line { display: block; }
.hero-sub { max-width: 52ch; text-wrap: pretty; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--paper-300, #b9c2c0); line-height: 1.7; }
.hero-points { display: grid; gap: 10px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--paper-200); font-size: .98rem; }
@media (min-width: 760px) { .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 28px; } }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .i { flex: none; width: 18px; height: 18px; color: var(--accent); }
.reel-card .reel-open { margin-top: 14px; width: 100%; }
.reel-card .bars { grid-template-columns: repeat(var(--n, 6), 1fr); }

/* ---------- Clients ---------- */
.clients .section-head { margin-bottom: clamp(28px, 3vw, 44px); }
.clients .h2 { margin-top: 0; }
/* Client logos: all of them at once, in two rows on wide screens */
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
.logo-tile {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 108px; padding: 18px 20px;
  border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.logo-tile img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Start: choose your project ---------- */
.start { background: radial-gradient(60% 60% at 85% 10%, rgb(0 182 175 / .09), transparent 60%), var(--bg); }
.start .h2 { margin-top: 0; }
.start-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.st { display: grid; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.st:hover { border-color: rgb(0 182 175 / .45); transform: translateY(-4px); }
.st-img { width: 100%; height: auto; max-height: 230px; object-fit: cover; }
.st-body { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 10px; }
.st h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.4; }
.st p { color: var(--text-muted); line-height: 1.85; }
.st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 8px; }
.st-link { font-weight: 700; color: var(--teal-300); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; min-height: 44px; display: inline-flex; align-items: center; }
.st-link:hover { color: var(--paper-100); }

/* ---------- Work: filters + project cards ---------- */
.work .h2 { margin-top: 0; }
/* Reels rail — carried over from the live site: a wall of phones that play as they scroll in */
.reels-block { margin-bottom: clamp(40px, 5vw, 64px); }
.pf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.pf-note { color: var(--text-muted); max-width: 52ch; }
.reel-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.reel-filters::-webkit-scrollbar { display: none; }
.reel-filters .chip { flex: none; }
.reel-filters .chip[aria-pressed="true"] { background: var(--paper-100); color: var(--ink-900); border-color: var(--paper-100); }
.reel-rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; padding-block: 6px 10px; }
.reel-rail::-webkit-scrollbar { display: none; }
.reel-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel-rail.is-dragging .reel { pointer-events: none; }
.reel-track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)); list-style: none; }
.reel-track > li { flex: none; scroll-snap-align: start; scroll-margin-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.reel-track > li[hidden] { display: none; }
.reel {
  position: relative; display: block; width: clamp(200px, 19vw, 262px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: var(--surface-2); border: 1px solid var(--line); text-align: start;
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med), box-shadow var(--t-med);
}
@supports not (aspect-ratio: 1) { .reel { width: 220px; height: 391px; } }
.reel img, .reel video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video { opacity: 0; transition: opacity .5s; }
li.is-playing .reel video { opacity: 1; }
.reel::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: linear-gradient(to top, rgb(7 16 18 / .9) 0%, rgb(7 16 18 / .25) 34%, transparent 55%); pointer-events: none; }
.reel:hover { transform: translateY(-6px); border-color: rgb(0 182 175 / .6); box-shadow: 0 26px 50px -26px rgb(0 182 175 / .55); }
.reel-play { position: absolute; z-index: 2; inset-inline-end: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(11 21 24 / .55); border: 1px solid rgb(243 244 239 / .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease-out); }
.reel-play .i { width: 15px; height: 15px; margin-inline-end: -2px; }
.reel:hover .reel-play { background: var(--accent); color: var(--ink-900); transform: scale(1.1); border-color: var(--accent); }
.reel-meta { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 14px 16px 16px; display: grid; gap: 2px; }
.reel-meta b { font-size: 1rem; font-weight: 800; line-height: 1.5; color: #fff; }
.reel-meta span { font-size: .82rem; color: var(--paper-200); line-height: 1.5; }
li.is-playing .reel-meta::before { content: ""; position: absolute; inset-inline: 16px; top: 0; height: 2px; border-radius: 2px; background: rgb(243 244 239 / .25); }
li.is-playing .reel-meta::after { content: ""; position: absolute; inset-inline: 16px; top: 0; height: 2px; border-radius: 2px; background: var(--teal-300); transform: scaleX(0); transform-origin: right; animation: prog 6s linear infinite; }
.rail-nav { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.rail-progress { flex: 1; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: right; transform: scaleX(var(--rp, .1)); transition: transform .2s; }
.rail-nav .icon-btn:disabled { opacity: .35; cursor: default; }
/* Testimonials: words light up as you read */
.wd { opacity: .18; transition: opacity .45s ease, color .45s; }
.wd.on { opacity: 1; }
/* Case study: the steps light up in turn */
.cs-block { transition: background-color .5s, border-color .5s, transform .5s var(--ease-out); }
.cs-block h3 { transition: color .5s; }
.cs-block.is-on { background: rgb(0 182 175 / .1); border-color: rgb(0 182 175 / .5); transform: translateX(-6px); }
.cs-block.is-on h3 { color: var(--teal-400); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
/* Project groups: a heading row per type in the «الكل» view */
.pc-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pc-head:first-child { margin-top: 0; }
.pc-head h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); font-weight: 800; }
.pc-head .num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: rgb(0 182 175 / .14); color: var(--teal-300); font-size: .82rem; font-weight: 800; }
.pc-head[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 700; font-size: .95rem; color: var(--text-muted); transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast); }
.chip:hover { color: var(--text); border-color: rgb(0 182 175 / .5); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--ink-900); border-color: var(--accent); }
.chip .count { font-size: .78rem; opacity: .7; }
.pc-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.pc[hidden] { display: none; }
.pc-btn {
  display: flex; flex-direction: column; width: 100%; height: 100%; text-align: start; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t-med), transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.pc-btn:hover { border-color: rgb(0 182 175 / .55); transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgb(0 182 175 / .45); }
.pc-media { position: relative; display: block; overflow: hidden; background: var(--ink-950); }
.pc-media img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.pc-media video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.pc-btn.is-playing .pc-media video { opacity: 1; }
.pc-btn:hover .pc-media img { transform: scale(1.04); }
.pc-media .badge { position: absolute; top: 12px; right: 12px; }
.pc-media img.pc-web { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s, transform 1s var(--ease-out); }
.pc-grid.is-web .pc-media img.pc-web { opacity: 1; }
.pc-grid.is-web .pc-media video { display: none; }
.pc-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.pc-name { font-size: 1.1rem; font-weight: 800; line-height: 1.5; }
.pc-kind { color: var(--teal-300); font-weight: 700; font-size: .9rem; line-height: 1.6; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pc-meta li { padding: 2px 10px; border-radius: 999px; background: rgb(243 244 239 / .06); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--paper-200); }
.pc-cta { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; color: var(--paper-100); }
.pc-cta .i { color: var(--teal-400); transition: transform var(--t-med) var(--ease-out); }
.pc-btn:hover .pc-cta .i { transform: translateX(-4px); }
/* Phones: a compact row card keeps 18 projects scannable */
@media (max-width: 639px) {
  .pc-btn { flex-direction: row; align-items: stretch; }
  .pc-media { flex: none; width: 40%; }
  .pc-media img { height: 100%; object-fit: cover; }
  .pc-media .badge { top: 8px; right: 8px; font-size: .68rem; padding: 2px 8px; }
  .pc-body { padding: 12px 14px; gap: 4px; }
  .pc-name { font-size: .98rem; }
  .pc-kind { font-size: .82rem; }
  .pc-meta { display: none; }
  .pc-cta { padding-top: 6px; font-size: .84rem; }
}
.group + .group { margin-top: clamp(40px, 5vw, 64px); }
.group-title { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.group-title::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--accent); }

/* Badges: «تنفيذ فعلي» vs «تصور تصميمي» */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; line-height: 1.6; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-exec { background: rgb(7 16 18 / .82); color: var(--teal-300); border: 1px solid rgb(95 224 217 / .45); }
.badge-design { background: rgb(7 16 18 / .82); color: var(--gold); border: 1px solid rgb(255 207 116 / .5); }

/* ---------- Project page (dialog) ---------- */
.project-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink-950); color: var(--text); overflow-y: auto; overscroll-behavior: contain; }
.project-dialog:not([open]) { display: none; }
.project-dialog[open] { display: block; position: fixed; top: 0; left: 0; z-index: 300; animation: fade-in .25s ease-out; }
.project-dialog::backdrop { background: rgb(5 10 12 / .9); }
.pd-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-start; padding: 12px var(--gutter); background: linear-gradient(to bottom, var(--ink-950) 60%, transparent); }
.pd-close { width: 48px; height: 48px; background: var(--ink-800); }
.pd-close .i { width: 22px; height: 22px; }
.pd { width: min(100% - var(--gutter) * 2, 1180px); margin: 0 auto; padding-bottom: 64px; }
.pd-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pd-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.pd-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; line-height: 1.35; text-wrap: balance; }
.pd-intro { margin-top: 8px; color: var(--teal-300); font-weight: 700; font-size: var(--fs-lead); line-height: 1.7; }
.pd-meta { margin-top: 14px; }
.pd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--teal-900), var(--ink-850)); border: 1px solid rgb(0 182 175 / .35); }
@media (min-width: 640px) { .pd-stats { grid-template-columns: repeat(2, minmax(0, 220px)); } }
.pd-stats div { display: grid; }
.pd-stats b { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; line-height: 1.15; direction: ltr; text-align: right; }
.pd-stats span { color: var(--paper-200); font-weight: 700; }
.pd-stats p { grid-column: 1 / -1; color: var(--text-muted); font-size: .88rem; }
.pd-info { display: grid; gap: 22px; margin-top: 24px; }
@media (min-width: 900px) { .pd-info { grid-template-columns: 1.15fr .85fr; gap: 36px; } }
.pd-block h3 { font-size: 1.05rem; font-weight: 800; color: var(--teal-300); margin-bottom: 10px; }
.pd-block p { color: var(--paper-200); line-height: 1.95; }
.pd-cat { margin-top: 12px; font-size: .95rem; }
.pd-cat b { color: var(--paper-100); }
.pd-scope { display: grid; gap: 8px; }
.pd-scope li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--paper-200); line-height: 1.75; }
.pd-scope .i { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.pd-scope-text { color: var(--paper-200); line-height: 1.95; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.pd-actions .btn-dark { --btn-bg: var(--ink-700); --btn-bd: var(--line-strong); }
.pd-sec { margin-top: 32px; }
.pd-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.pd-sec-head h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 800; }
.pd-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgb(243 244 239 / .08); color: var(--text-muted); font-size: .8rem; font-weight: 700; }
.pd-sec-link { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgb(0 182 175 / .45); color: var(--teal-300); font-weight: 700; font-size: .9rem; }
.pd-sec-link .i { width: 16px; height: 16px; }
.pd-sec-link:hover { background: rgb(0 182 175 / .1); }
.pd-note { color: var(--text-subtle); font-size: .85rem; margin: -6px 0 12px; }
/* Masonry columns: mixed wide/tall media pack without gaps (works on every Safari) */
.pd-gallery { column-count: 2; column-gap: 10px; }
@media (min-width: 640px) { .pd-gallery { column-count: 3; } }
@media (min-width: 1000px) { .pd-gallery { column-count: 4; } }
.pd-gallery > li { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; margin-bottom: 10px; }
.pd-gallery.one { column-count: 1; max-width: 980px; }
.gi { position: relative; display: block; width: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--ink-800); border: 1px solid var(--line); text-align: start; transition: border-color var(--t-fast), transform var(--t-med) var(--ease-out); }
.gi:hover { border-color: rgb(0 182 175 / .6); transform: translateY(-3px); }
.gi img { width: 100%; height: auto; }
.gi-play { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgb(11 21 24 / .7); border: 1px solid rgb(243 244 239 / .35); color: #fff; transition: background-color var(--t-fast), transform var(--t-med) var(--ease-out); }
.gi-play .i { width: 20px; height: 20px; margin-right: -3px; }
.gi:hover .gi-play, .cs-film:hover .gi-play { background: var(--accent); color: var(--ink-900); transform: scale(1.08); }
.gi-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(to top, rgb(7 16 18 / .9), transparent); font-size: .82rem; font-weight: 700; line-height: 1.5; }
.pd-gallery.one .gi-play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.pd-gallery.one .gi-cap { font-size: 1rem; padding: 40px 18px 16px; }

/* ---------- Media viewer ---------- */
.viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050A0C; color: var(--paper-100); }
.viewer:not([open]) { display: none; }
.viewer[open] { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; z-index: 400; animation: fade-in .25s ease-out; }
.viewer::backdrop { background: transparent; }
@keyframes fade-in { from { opacity: 0; } }
.v-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px; }
.v-stage > img, .v-stage > video { max-width: min(100%, 1400px); max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); border-radius: 12px; object-fit: contain; background: #000; animation: pop .35s var(--ease-out); }
.v-stage > video.is-portrait { width: auto; height: calc(100vh - 120px); height: calc(100svh - 120px); max-width: 100%; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.v-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(11 21 24 / .95); }
.v-meta { flex: 1; min-width: 0; }
.v-meta b { display: block; font-weight: 800; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-meta span { display: block; color: var(--text-muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-count { color: var(--text-muted); font-size: .9rem; padding-inline: 6px; }
.v-prev[hidden], .v-next[hidden] { display: none; }

/* ---------- Case study ---------- */
.case-sec { background: linear-gradient(180deg, var(--bg), var(--ink-950)); }
.case-sec .h2 { margin-top: 0; }
.cs-grid { display: grid; gap: clamp(22px, 3vw, 40px); align-items: start; }
@media (min-width: 1000px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
.cs-film { position: relative; display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #000; }
.cs-film img { width: 100%; height: auto; }
.cs-film .badge { position: absolute; top: 12px; right: 12px; }
.cs-screens { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 10px; align-items: start; margin-top: 10px; }
.cs-screens img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.cs-phone img { border: 3px solid #050a0b; border-radius: 14px; }
.cs-media .pd-note { margin: 10px 0 0; }
.cs-text { display: grid; gap: 12px; }
.cs-block { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.cs-block h3 { font-size: 1.02rem; font-weight: 800; color: var(--teal-300); margin-bottom: 6px; }
.cs-block p { color: var(--paper-200); line-height: 1.9; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cs-quote { margin-top: clamp(22px, 3vw, 36px); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 14px; }
.quote { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); display: grid; gap: 18px; }
.quote .mark { width: 44px; height: 44px; color: var(--accent); }
.quote blockquote p { font-size: clamp(1.1rem, .98rem + .6vw, 1.45rem); font-weight: 700; line-height: 1.9; text-wrap: pretty; }
.quote.big blockquote p { font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem); font-weight: 800; }
.quote figcaption b { display: block; font-weight: 800; font-size: 1.05rem; }
.quote figcaption span { color: var(--text-muted); font-size: .92rem; }

/* ---------- Services (manual tabs) ---------- */
.services { background: radial-gradient(70% 50% at 85% 0%, rgb(0 182 175 / .1), transparent 60%), var(--bg); }
.services .h2 { margin-top: 0; }
.svc-wrap { display: grid; gap: 16px; }
@media (min-width: 1000px) { .svc-wrap { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; } }
.svc-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .svc-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc-tabs { grid-template-columns: minmax(0, 1fr); position: sticky; top: calc(var(--header-h) + 20px); } }
.svc-tab { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-align: start; font-weight: 800; font-size: .95rem; line-height: 1.45; transition: background-color var(--t-med), border-color var(--t-med); }
.svc-tab .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgb(0 182 175 / .12); color: var(--accent); }
.svc-tab .ic .i { width: 18px; height: 18px; }
.svc-tab:hover { border-color: rgb(0 182 175 / .45); }
.svc-tab[aria-selected="true"] { background: linear-gradient(135deg, rgb(0 182 175 / .2), rgb(0 182 175 / .04)); border-color: rgb(0 182 175 / .65); }
.svc-tab[aria-selected="true"] .ic { background: var(--accent); color: var(--ink-900); }
.svc-panel { display: grid; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 760px) { .svc-panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.svc-panel[hidden] { display: none; }
.svc-panel .body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.svc-panel h3 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); font-weight: 800; line-height: 1.35; }
.svc-panel .body > p { color: var(--paper-200); line-height: 1.9; }
.svc-panel .body > p.svc-desc { margin-top: 10px; }
.svc-panel .body > p.tagline { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 800; line-height: 1.6; color: var(--teal-300); }
.inc-label { font-weight: 800; color: var(--teal-300); margin-top: 4px; }
.inc { display: flex; flex-wrap: wrap; gap: 8px; }
.inc li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgb(243 244 239 / .05); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.inc .i { width: 15px; height: 15px; color: var(--accent); }
.svc-panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.svc-panel .visual { position: relative; overflow: hidden; background: var(--ink-950); }
.svc-panel .visual img { width: 100%; height: 100%; object-fit: cover; }
.svc-panel .visual video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) { .svc-panel .visual { order: -1; max-height: 240px; } }
/* Identity & Design: slideshow of real identity designs */
.svc-slides { position: relative; height: 100%; min-height: 240px; overflow: hidden; background: var(--ink-950); }
@media (max-width: 759px) { .svc-slides { height: 240px; } }
.svc-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.svc-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 5.5s linear; }
.svc-slide.is-on { opacity: 1; z-index: 1; }
.svc-slide.is-on img { transform: scale(1); }
.svc-slides.is-web { background: radial-gradient(120% 90% at 50% 35%, #12252b 0%, var(--ink-950) 70%); }
.svc-slides.is-web .svc-slide img { object-fit: contain; padding: 22px 18px 86px; transform: translateY(14px) scale(.97); transition: transform 1.2s var(--ease-out); }
.svc-slides.is-web .svc-slide.is-on img { transform: none; }
@media (max-width: 759px) { .svc-panel .visual:has(.svc-slides.is-web) { max-height: none; } .svc-slides.is-web { height: 280px; } .svc-slides.is-web .svc-slide img { padding: 10px 8px 76px; } }
.svc-slide figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 30px; background: linear-gradient(to top, rgb(7 16 18 / .85), transparent); }
.svc-slide figcaption button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgb(11 21 24 / .7); border: 1px solid rgb(243 244 239 / .2); color: var(--paper-100); font-weight: 700; font-size: .85rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transform: translateY(8px); opacity: 0; transition: transform .6s var(--ease-out) .35s, opacity .6s .35s, background-color var(--t-fast), color var(--t-fast); }
.svc-slide.is-on figcaption button { transform: none; opacity: 1; }
.svc-slide figcaption button:hover { background: var(--accent); color: var(--ink-900); }
.svc-slide figcaption .i { width: 14px; height: 14px; }
.svc-dots { position: absolute; z-index: 2; inset-inline-start: 16px; bottom: 14px; display: flex; gap: 5px; }
.svc-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgb(243 244 239 / .35); transition: width .4s var(--ease-out), background-color .4s; }
.svc-dots i.is-on { width: 18px; background: var(--teal-400); }
@media (prefers-reduced-motion: reduce) { .svc-slide, .svc-slide img, .svc-slide figcaption button { transition: none; } }
.svc-panel.is-entering .body > * { animation: rise .5s var(--ease-out) both; }
.svc-panel.is-entering .body > *:nth-child(2) { animation-delay: 40ms; }
.svc-panel.is-entering .body > *:nth-child(3), .svc-panel.is-entering .body > *:nth-child(4) { animation-delay: 80ms; }

/* ---------- Why Kaizen ---------- */
.why { overflow: hidden; background: radial-gradient(60% 55% at 15% 45%, rgb(0 182 175 / .1), transparent 65%), linear-gradient(180deg, var(--ink-950), var(--bg)); }
.why .h2 { margin-top: 0; }
.why-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.why-list { display: grid; gap: 10px; margin-top: 28px; }
.why-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t-med); }
.why-list li:hover { border-color: rgb(0 182 175 / .45); }
.why-list .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgb(0 182 175 / .12); color: var(--accent); }
.why-list h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.5; }
.why-list p { color: var(--text-muted); line-height: 1.8; margin-top: 2px; }
@media (max-width: 959px) { .why .hub { max-width: 420px; } }
.hub .sat { width: 110px; font-size: .8rem; line-height: 1.5; }

/* ---------- Process ---------- */
.process .h2 { margin-top: 0; }
.process-cta { justify-content: center; background: transparent; border: 0; box-shadow: none; padding: 0; }
.step .badge-step {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  background: var(--paper-50); border: 1px solid var(--line-strong); color: var(--teal-700);
  transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med);
}
.step.is-active .badge-step { background: var(--ink-900); color: var(--teal-400); border-color: var(--ink-900); }
.step .badge-step .i { width: 26px; height: 26px; }
.step .badge-step.ping { animation: badge-ping 1s var(--ease-out); }
.step .badge-step.ping .i { animation: icon-pop 1s var(--ease-out); }
@media (max-width: 899px) { .step .badge-step { grid-row: span 3; } }

/* ---------- FAQ ---------- */
.faq-cta { margin-top: 22px; }

/* ---------- Contact & form ---------- */
.contact .h2 { margin-top: 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.contact-ways { display: grid; gap: 8px; margin-top: 28px; }
.contact-ways a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--paper-200); font-weight: 700; }
.contact-ways small { display: block; color: var(--text-subtle); font-weight: 700; font-size: .78rem; }
.contact-ways .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgb(243 244 239 / .06); color: var(--accent); }
.form .req { color: #B42318; }
.field select { padding-inline-start: 40px; }
.file-drop { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 12px; border: 1.5px dashed #AEB8AC; background: #fff; color: var(--ink-900); cursor: pointer; font-weight: 700 !important; transition: border-color var(--t-fast), background-color var(--t-fast); }
.file-drop:hover { border-color: var(--teal-700); background: #F4FAF9; }
.file-drop .i { flex: none; width: 20px; height: 20px; color: var(--teal-700); }
.file-drop .file-name { font-weight: 400; color: var(--text-muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.field.has-file .file-drop { border-style: solid; border-color: var(--teal-700); }
.field.has-file .file-name { color: var(--ink-900); font-weight: 700; }
input[type="file"]:focus-visible + .err, .file-drop:focus-within { outline: 2px solid var(--teal-700); }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #D3D8D0; background: #fff; cursor: pointer; font-weight: 700; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--teal-700); }
.form, .checks { color-scheme: light; }
.field .check input { flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 4px; box-shadow: none; }
.check:has(input:checked) { border-color: var(--teal-700); background: rgb(0 182 175 / .1); }
.svc-checks .err { width: 100%; }
.field.invalid.svc-checks .check { border-color: #E5A3A3; }
.send-btns { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.send-btns .btn { flex: 1 1 220px; }
.form .btn-mail { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: rgb(11 21 24 / .28); }
.form .btn-mail:hover { --btn-bg: rgb(11 21 24 / .05); --btn-bd: var(--ink-900); }
.btn-send .i { width: 18px; height: 18px; }
.form.is-sending .btn-send { pointer-events: none; opacity: .7; }
.btn-send.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.form-error { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: #FDF1F0; border: 1px solid #F1C4C0; color: #5B1A14; }
.form-error b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.form-error p { line-height: 1.8; }
.form-error .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.form-error[hidden] { display: none; }
.form-success .btn-mail[hidden] { display: none; }
.form-success .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.check:has(input:checked) { border-color: var(--teal-700); background: #EEF8F7; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .submit .btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(243 244 239 / .3); border-top-color: var(--teal-400); animation: spin .8s linear infinite; }
.form.is-sending .submit .btn { pointer-events: none; opacity: .85; }
.form.is-sending .submit .btn .spinner { display: inline-block; }
.form.is-sending .submit .btn .i-go { display: none; }
.form .note a { color: var(--teal-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-error { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); background: #FEF3F2; border: 1px solid #FDA29B; color: #7A271A; }
.form-error b { display: block; font-size: 1.05rem; }
.form-error p { margin-top: 4px; }
.form-error .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lead-ref { font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer .f-name { margin-top: 18px; font-weight: 800; color: var(--paper-100); font-size: 1.05rem; }
.site-footer .about p { margin-top: 8px; }
.site-footer .f-addr { display: flex; align-items: center; gap: 8px; }
.site-footer .f-addr .i { width: 18px; height: 18px; color: var(--accent); }
.f-h { font-size: .98rem; font-weight: 800; color: var(--paper-100); margin-bottom: 12px; }

/* ---------- Campaign pages ---------- */
.c-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(48px, 7vw, 110px)) 0 clamp(48px, 6vw, 90px); }
.c-hero-bg { position: absolute; top: 0; left: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.c-hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: linear-gradient(to left, rgb(11 21 24 / .95) 15%, rgb(11 21 24 / .6) 60%, rgb(11 21 24 / .85)), linear-gradient(to top, var(--bg), transparent 40%); }
.c-hero .eyebrow { margin-bottom: 16px; }
.c-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); font-weight: 800; line-height: 1.25; max-width: 18ch; text-wrap: balance; }
.c-hero .hero-sub { color: var(--paper-200); }
.privacy .narrow { max-width: 820px; }
.privacy section { margin-top: 28px; }
.privacy h2 { font-size: 1.3rem; font-weight: 800; color: var(--teal-300); margin-bottom: 8px; }
.privacy p { color: var(--paper-200); line-height: 2; }
.privacy .btn { margin-top: 36px; }
.privacy-page .privacy { padding-top: calc(var(--header-h) + 60px); }


/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .steps-rail .comet { display: none; }
  .hub .spoke { stroke-dashoffset: 0; }
  .hub .sat { opacity: 1; scale: 1; }
  .wa-qs li { opacity: 1; }
}

@media print {
  .site-header, .fab, .wa-panel, .mobile-bar, .hero-media, .progress { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Room for the fixed mobile action bar so it never covers the footer */
@media (max-width: 759px) { .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
/* Phones: stronger veil so the headline never competes with text inside the reel */
@media (max-width: 759px) {
  .hero::before { background: linear-gradient(to top, var(--ink-900) 8%, rgb(11 21 24 / .82) 45%, rgb(11 21 24 / .72) 100%); }
  .hero-media video { opacity: .45; }
}
@media (max-width: 759px) {
  .c-hero-bg { opacity: .22; }
  .c-hero::after { background: linear-gradient(to top, var(--bg) 4%, rgb(11 21 24 / .78) 50%, rgb(11 21 24 / .7)); }
}

/* ---------- Fallbacks for older iPhone Safari (before iOS 14.5 / 15) ----------
   Physical offsets first; browsers that understand the logical ones above keep using them. */
@supports not (inset-inline: 0) {
  .progress, .site-header { left: 0; right: 0; }
  .skip-link { right: 16px; }
  .fab { right: 22px; }
  .wa-panel { right: 22px; }
  .fab .dot { left: 4px; }
  .step:not(:last-child)::after { right: 31px; }
  .process::before { top: -56px; right: -56px; bottom: -56px; left: -56px; }
  .steps-rail .comet { top: -12px; bottom: -12px; left: 0; right: 0; }
  .hub .core .face::after { top: -50%; right: -50%; bottom: -50%; left: -50%; }
}
@supports not (inset-inline: 0) { @media (max-width: 759px) { .wa-panel { left: 12px; right: 12px; } } }
@supports not (aspect-ratio: 1 / 1) {
  .hub { height: 0; padding-bottom: 100%; }
  @media (min-width: 560px) { .hub { padding-bottom: 0; height: 560px; } }
  .hub .core { height: 30%; }
  .hub .core .face svg, .wa-head .av svg { height: 50%; }
}

/* ==========================================================================
   «كايزن من الفكرة إلى التنفيذ»: hub + four steps, lit together
   ========================================================================== */
.journey-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .journey-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 959px) { .journey .hub { max-width: 400px; } }
.journey-side { display: grid; gap: 22px; justify-items: start; }
.jsteps { --jp: 1; position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; width: 100%; }
.jsteps::before, .jsteps::after { content: ""; position: absolute; inset-inline-start: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.jsteps::after { background: linear-gradient(to bottom, var(--teal-300), var(--accent)); transform-origin: top; transform: scaleY(var(--jp)); transition: transform .8s var(--ease-out); }
.jstep { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 14px 16px 14px 18px; border-radius: var(--r-md); border: 1px solid transparent; cursor: default; transition: background-color .5s, border-color .5s, transform .5s var(--ease-out); }
.jdot { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-muted); transition: background-color .5s, border-color .5s, color .5s, box-shadow .5s; }
.jdot .i { width: 22px; height: 22px; }
.jstep .no { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--text-subtle); transition: color .5s; }
.jstep h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.5; margin-top: 2px; }
.jstep p { color: var(--text-muted); line-height: 1.8; margin-top: 4px; font-size: .95rem; }
.jstep.is-done .jdot { border-color: rgb(0 182 175 / .5); color: var(--accent); }
.jstep.is-on { background: rgb(0 182 175 / .08); border-color: rgb(0 182 175 / .35); transform: translateX(-6px); }
.jstep.is-on .jdot { background: var(--accent); border-color: var(--accent); color: var(--ink-900); box-shadow: 0 0 0 6px rgb(0 182 175 / .15), 0 10px 26px -10px rgb(0 182 175 / .7); }
.jstep.is-on .no { color: var(--teal-300); }
/* the hub follows the steps: 0 understand → 1 scope → 2 build → 3 deliver (every service lit) */
.journey .hub .sat { transition: opacity .6s, scale .6s var(--ease-out); }
.journey .hub .sat { width: 132px; }
.journey .hub .sat .lb { position: relative; z-index: 1; padding: 3px 9px; border-radius: 8px; background: var(--ink-900); font-weight: 700; line-height: 1.5; }
.journey .hub .sat .ic { transition: background-color .5s, border-color .5s, color .5s, box-shadow .5s; transition-delay: calc(var(--i) * 110ms); }
.journey .hub.is-in[data-stage="0"] .sat { opacity: .35; }
.journey .hub.is-in[data-stage="1"] .sat { opacity: .6; }
.journey .hub[data-stage="0"] .spoke, .journey .hub[data-stage="1"] .spoke { stroke: rgb(0 182 175 / .3); }
.journey .hub[data-stage="1"] .spoke { stroke: rgb(95 224 217 / .9); }
.journey .hub[data-stage="0"] .core .face { box-shadow: 0 0 0 10px rgb(0 182 175 / .12), 0 0 60px rgb(0 182 175 / .45); }
.journey .hub[data-stage="3"] .sat .ic, .journey .hub[data-stage="4"] .sat .ic { background: var(--accent); border-color: var(--accent); color: var(--ink-900); box-shadow: 0 0 0 5px rgb(0 182 175 / .14), 0 12px 28px -12px rgb(0 182 175 / .8); }
.journey .hub[data-stage="3"] .core .face, .journey .hub[data-stage="4"] .core .face { box-shadow: 0 0 0 14px rgb(0 182 175 / .1), 0 0 80px rgb(0 182 175 / .5); }
.journey .hub .core .face { transition: box-shadow .6s; }
@media (prefers-reduced-motion: reduce) { .jsteps::after, .jstep, .jdot, .journey .hub .sat .ic { transition: none; } }
/* contact: one main send button, e-mail as the quieter alternative */
.send-btns .btn-send-alt { flex: 0 1 auto; min-height: 44px; font-size: .92rem; }

/* «أعمالنا»: three featured projects, then the whole portfolio behind «استعرض جميع الأعمال» */
.pc-featured { margin-bottom: 26px; }
.pc-kind.pc-text { color: var(--paper-200); font-weight: 400; font-size: .95rem; line-height: 1.85; }
.work-more { display: flex; justify-content: center; }
.work-more[hidden] { display: none; }
.work-all { margin-top: 8px; }
.work-all:not([hidden]) { animation: work-open .6s var(--ease-out) both; }
@keyframes work-open { from { opacity: 0; transform: translateY(14px); } }
/* «شركاؤنا»: the 28 logos of the approved pack, never shown larger than their files */
.logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; } }
.logo-tile { height: 92px; padding: 14px 12px; }
.logo-tile img { width: auto; height: auto; max-width: 100%; max-height: 58px; }
@media (max-width: 599px) { .logo-tile { height: 76px; padding: 10px 8px; } .logo-tile img { max-height: 46px; } }
@media (prefers-reduced-motion: reduce) { .work-all:not([hidden]) { animation: none; } }

/* Dark ↔ light edges: no line. The colour above dissolves into the next section through dots that grow step by step
   (kaizen.js draws them); they spread as the page scrolls and swell round the pointer. Without script a soft fade stands in. */
.seamed { --seam-h: clamp(130px, 16vw, 240px); margin-top: calc(var(--seam-h) * -.5); padding-top: calc(var(--seam-h) + var(--section-y) * .45); scroll-margin-top: calc(var(--seam-h) * -.75); }
.clients.seamed { margin-top: 0; } /* the hero video runs to its bottom edge, so nothing may cover it */
.seam { position: absolute; top: 0; left: 0; right: 0; z-index: 0; height: var(--seam-h); pointer-events: none;
  --seam-from: var(--ink-900); --seam-spark: var(--teal-400); background: linear-gradient(var(--seam-from), transparent); }
.seam-light { --seam-from: var(--paper-100); --seam-spark: var(--teal-600); }
.js .seam { background: none; }
.seam canvas { display: block; width: 100%; height: 100%; }

/* Quiet live background (plain sections): a faint dot grid, the same hex as the edges, with two soft teal glows drifting
   beneath it (kaizen.js moves them; on a computer the first leans toward the pointer). Fades out before both edges. */
.ambient { isolation: isolate; }
.amb { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; overflow: hidden; pointer-events: none;
  --amb-top: 120px; --amb-dot: rgb(243 244 239 / .075); --amb-glow: rgb(0 182 175 / .16); --amb-glow2: rgb(95 224 217 / .08);
  -webkit-mask-image: linear-gradient(transparent, #000 var(--amb-top), #000 calc(100% - 200px), transparent);
  mask-image: linear-gradient(transparent, #000 var(--amb-top), #000 calc(100% - 200px), transparent); }
.seamed > .amb { --amb-top: calc(var(--seam-h) + 80px); }
.light > .amb { --amb-dot: rgb(11 21 24 / .085); --amb-glow: rgb(0 182 175 / .13); --amb-glow2: rgb(0 150 144 / .07); }
.amb i { position: absolute; top: 0; left: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--amb-glow), transparent); will-change: transform; transform: translate3d(50vw, 40%, 0); }
.amb i + i { width: 560px; height: 560px; margin: -280px 0 0 -280px; background: radial-gradient(closest-side, var(--amb-glow2), transparent); transform: translate3d(25vw, 65%, 0); }
.amb::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle, var(--amb-dot) 1px, transparent 1.6px) 0 0 / 22px 38px, radial-gradient(circle, var(--amb-dot) 1px, transparent 1.6px) 11px 19px / 22px 38px; }
@media (max-width: 599px) { .amb i { width: 460px; height: 460px; margin: -230px 0 0 -230px; } .amb i + i { width: 340px; height: 340px; margin: -170px 0 0 -170px; } }
