/* ==========================================================
   Elbosat Marketing Agency — demo site
   Brand: navy #073766 + orange #FF8000 (from logo)
   ========================================================== */
:root {
  /* brand primitives */
  --navy-950: #021327;
  --navy-900: #041d3a;
  --navy-800: #062a52;
  --navy-700: #073766;
  --navy-500: #2a5a8c;
  --orange-500: #ff8000;
  --orange-600: #e86f00;
  --orange-700: #b35600;          /* AA-safe orange for small text on light */
  --cream-50: #fbf8f3;
  --cream-100: #f4eee4;
  --white: #ffffff;

  /* semantic tokens */
  --bg: var(--cream-50);
  --surface: var(--white);
  --ink: #0b1b2e;
  --ink-muted: #46566a;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c8da;
  --accent: var(--orange-500);
  --accent-ink: var(--orange-700);
  --line: #e4dccf;
  --line-dark: rgba(255,255,255,.12);
  --ring: var(--orange-500);

  /* type */
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;

  /* spacing (spacious) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-1: 0 1px 2px rgba(4,29,58,.06), 0 4px 12px rgba(4,29,58,.06);
  --shadow-2: 0 10px 30px -10px rgba(4,29,58,.35);
  --shadow-3: 0 30px 60px -20px rgba(2,19,39,.55);

  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-in: cubic-bezier(.55,0,1,.45);
  --dur-1: 160ms; --dur-2: 260ms; --dur-3: 600ms;

  --nav-h: 76px;
  --z-nav: 40; --z-lb: 100;
}

html[lang="ar"] {
  --f-display: "Alexandria", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--navy { background: var(--navy-900); color: var(--on-dark); }
.section--cream { background: var(--cream-100); }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .8125rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: var(--s-5);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow--light { color: var(--accent); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

.display {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.25rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.02em;
  max-width: 18ch; text-wrap: balance;
}
html[lang="ar"] .display { letter-spacing: 0; line-height: 1.25; font-weight: 800; }
.display em, .hero__title em { font-style: normal; color: var(--accent-ink); }
.display--light em, .hero__title em { color: var(--accent); }

.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-6); }
.section__head--center { text-align: center; }
.section__head--center .display { margin-inline: auto; }
.section__sub { margin-top: var(--s-5); max-width: 52ch; color: var(--on-dark-muted); font-size: 1.125rem; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2), box-shadow var(--dur-2), color var(--dur-2);
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-2) var(--ease-out); }
[dir="rtl"] .btn svg[viewBox] path[d^="M5 12h14"] { transform: scaleX(-1); transform-origin: center; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--navy-950); box-shadow: 0 8px 24px -8px rgba(255,128,0,.6); }
.btn--primary:hover { background: #ff9126; }
.btn--primary:hover svg { transform: translateX(3px); }
[dir="rtl"] .btn--primary:hover svg { transform: translateX(-3px); }
.btn--ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn--block { width: 100%; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
  transition: background-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.nav__brand { display: block; flex: none; }
.nav__logo { height: 42px; width: auto; }
.nav__logo--dark { display: none; }
.nav__links { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
.nav__links a {
  text-decoration: none; font-weight: 600; font-size: .975rem; color: var(--on-dark);
  padding: 10px 14px; border-radius: 999px; transition: background-color var(--dur-1), color var(--dur-1);
}
.nav__links a:hover { background: rgba(255,255,255,.1); }
.nav__links a[aria-current="true"] { color: var(--accent); }
.nav__links .nav__cta { background: var(--accent); color: var(--navy-950); margin-inline-start: var(--s-2); padding-inline: 20px; }
.nav__links .nav__cta:hover { background: #ff9126; }
.nav__tools { display: flex; align-items: center; gap: var(--s-2); }
.lang {
  min-width: 48px; height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: var(--on-dark);
  font-weight: 700; font-size: .95rem; transition: background-color var(--dur-1), border-color var(--dur-1);
}
.lang:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.lang__label { font-family: "Alexandria", var(--f-body); }
html[lang="ar"] .lang__label { font-family: "DM Sans", sans-serif; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline-start: 13px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; color: var(--on-dark); transition: transform var(--dur-2) var(--ease-out); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* solid state after scrolling past hero */
.nav.is-solid { background: rgba(251,248,243,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .nav__logo--light { display: none; }
.nav.is-solid .nav__logo--dark { display: block; }
.nav.is-solid .nav__links a:not(.nav__cta) { color: var(--ink); }
.nav.is-solid .nav__links a:not(.nav__cta):hover { background: rgba(7,55,102,.07); }
.nav.is-solid .nav__links a[aria-current="true"]:not(.nav__cta) { color: var(--accent-ink); }
.nav.is-solid .lang { color: var(--ink); border-color: rgba(7,55,102,.25); }
.nav.is-solid .lang:hover { background: rgba(7,55,102,.06); }
.nav.is-solid .burger { background: rgba(7,55,102,.08); }
.nav.is-solid .burger span { color: var(--ink); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #0b4a86 0%, var(--navy-800) 40%, var(--navy-900) 75%);
  color: var(--on-dark); padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 80px));
}
.hero__glow { position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,128,0,.22), transparent); pointer-events: none; }
[dir="rtl"] .hero__glow { inset: auto auto -40% -10%; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero__title {
  font-family: var(--f-display); font-weight: 900; font-stretch: 118%;
  font-size: clamp(2.75rem, 7vw, 6rem); line-height: .96; letter-spacing: -.03em; text-wrap: balance;
}
html[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.2; font-size: clamp(2.5rem, 6.2vw, 5.2rem); }
.hero__title em { display: inline-block; position: relative; }
.hero__title em::after {
  content: ""; position: absolute; inset-inline: -2% -4%; bottom: -.16em; height: .26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 90 26, 210 26, 298 4 C 210 18, 90 18, 2 6 Z' fill='%23ff8000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); animation: underline 1s 600ms var(--ease-out) forwards;
}
[dir="rtl"] .hero__title em::after { transform: scaleX(-1); }
@keyframes underline { to { clip-path: inset(0 0 0 0); } }
.hero__lead { margin-top: var(--s-5); max-width: 52ch; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); color: var(--on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin: clamp(40px, 5vw, 64px) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line-dark); }
.hero__stats dt { font-size: .875rem; color: var(--on-dark-muted); }
.hero__stats dd { margin: 4px 0 0; font: 800 clamp(1.75rem, 3vw, 2.4rem)/1 var(--f-display); font-stretch: 115%; font-variant-numeric: tabular-nums; }

/* photo fan */
.hero__stack { position: relative; aspect-ratio: 1 / 1.05; max-width: 560px; margin-inline: auto; width: 100%; }
.card {
  position: absolute; margin: 0; padding: 10px; background: #fff; border-radius: 22px;
  box-shadow: var(--shadow-3); transition: transform var(--dur-3) var(--ease-out);
}
.card img:first-child { border-radius: 14px; width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; width: 74px; height: 74px; border-radius: 50%; inset-inline-end: -18px; top: -18px; box-shadow: 0 8px 20px rgba(0,0,0,.35); border: 3px solid #fff; }
.card--1 { width: 58%; aspect-ratio: 393/324; inset-inline-start: 0; top: 6%; transform: rotate(-7deg); z-index: 2; }
.card--2 { width: 54%; aspect-ratio: 1; inset-inline-end: 0; top: 0; transform: rotate(6deg); z-index: 1; }
.card--3 { width: 50%; aspect-ratio: 394/474; inset-inline-start: 24%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.hero__stack:hover .card--1 { transform: rotate(-10deg) translate(-12px,-6px); }
.hero__stack:hover .card--2 { transform: rotate(9deg) translate(12px,-8px); }
.hero__stack:hover .card--3 { transform: rotate(0deg) translateY(6px); }
.hero__orb { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); inset-inline-end: 6%; bottom: 10%; z-index: 4; box-shadow: 0 12px 30px rgba(255,128,0,.5); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* marquee */
.marquee { margin-top: clamp(56px, 8vw, 104px); padding-block: 28px; border-top: 1px solid var(--line-dark); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { width: 76px; height: 76px; border-radius: 50%; flex: none; filter: saturate(.9); opacity: .95; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ==========================================================
   ABOUT
   ========================================================== */
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.about__lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.7; color: var(--ink-muted); }
.about__lead::first-line { color: var(--ink); font-weight: 600; }

.timeline { position: relative; display: grid; gap: var(--s-6); padding-inline-start: 36px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 8px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--navy-700), var(--accent)); border-radius: 2px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -36px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--navy-700); }
.timeline__now::before { border-color: var(--accent) !important; background: var(--accent) !important; }
.timeline__year { font: 800 1.5rem/1 var(--f-display); font-stretch: 115%; color: var(--navy-700); }
.timeline__now .timeline__year { color: var(--accent-ink); }
.timeline h3 { font: 700 1.125rem/1.3 var(--f-body); margin: 6px 0 4px; }
.timeline p { color: var(--ink-muted); font-size: 1rem; }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: clamp(56px, 7vw, 96px); }
.vm__card { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.vm__card h3 { font: 800 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--f-display); font-stretch: 112%; margin: var(--s-5) 0 var(--s-3); }
.vm__card p { font-size: 1.0625rem; }
.vm__card--vision { background: var(--navy-800); color: var(--on-dark); }
.vm__card--vision p { color: var(--on-dark-muted); }
.vm__card--mission { background: var(--accent); color: var(--navy-950); }
.vm__icon { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vm__card--vision .vm__icon { stroke: var(--accent); }
.vm__card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; inset-inline-end: -70px; bottom: -90px; background: rgba(255,255,255,.07); }
.vm__card--mission::after { background: rgba(4,29,58,.08); }

/* ==========================================================
   SERVICES
   ========================================================== */
.services { overflow: hidden; }
.services::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 80px solid rgba(255,128,0,.06); inset-inline-end: -180px; top: -160px; }
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); position: relative; }
.svc__card {
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; min-height: 420px;
  transition: background-color var(--dur-2), border-color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.svc__card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,128,0,.5); transform: translateY(-4px); }
.svc__num { font: 800 .875rem/1 var(--f-display); color: var(--accent); letter-spacing: .1em; }
.svc__icon { width: 52px; height: 52px; margin: var(--s-5) 0; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--navy-950); }
.svc__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc__card h3 { font: 800 1.75rem/1.1 var(--f-display); font-stretch: 112%; margin-bottom: var(--s-4); }
.svc__card > p { min-height: 5em; }
.svc__card ul { display: grid; gap: 10px; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); }
.svc__card li { display: flex; align-items: center; gap: 10px; color: var(--on-dark-muted); font-size: 1rem; }
.svc__card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ==========================================================
   WORK
   ========================================================== */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .95rem; cursor: pointer; color: var(--ink);
  transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.chip:hover { border-color: var(--navy-700); }
.chip[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chip__n { opacity: .6; margin-inline-start: 6px; font-variant-numeric: tabular-nums; }

.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); grid-auto-flow: dense; }
.work__item { grid-column: span 4; }
.work__item.is-wide { grid-column: span 8; }
.work__item[hidden] { display: none; }
.project {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; position: relative;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800); aspect-ratio: 4 / 4.4;
  box-shadow: var(--shadow-1); transition: box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.work__item.is-wide .project { aspect-ratio: auto; height: 100%; min-height: 100%; }
.project:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.project:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.project__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.project:hover .project__img { transform: scale(1.06); }
.project__mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.project__mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.project:hover .project__mosaic img { transform: scale(1.05); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,19,39,0) 40%, rgba(2,19,39,.88) 100%); pointer-events: none; }
.project__meta { position: absolute; inset: auto 0 0 0; padding: var(--s-5); z-index: 1; display: flex; align-items: flex-end; gap: var(--s-3); color: #fff; }
.project__logo { width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid #fff; flex: none; background: #fff; }
.project__name { font: 800 1.35rem/1.15 var(--f-display); font-stretch: 108%; }
.project__tags { font-size: .875rem; color: #d7e1ec; margin-top: 4px; }
.project__count { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(2,19,39,.6); backdrop-filter: blur(6px); color: #fff; font-size: .8125rem; font-weight: 600; }
.project__count svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.work__hint { margin-top: var(--s-5); color: var(--ink-muted); font-size: .9375rem; text-align: center; }

/* ==========================================================
   PRINT
   ========================================================== */
.print__grid { columns: 2; column-gap: var(--s-5); }
.print__item { break-inside: avoid; margin-bottom: var(--s-6); }
.print__btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background: #1688aa; position: relative; box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2);
}
.print__btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.print__btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.print__btn img { width: 100%; height: auto; transition: transform 900ms var(--ease-out); }
.print__btn:hover img { transform: scale(1.03); }
.print__cap { margin-top: var(--s-3); display: flex; justify-content: space-between; gap: var(--s-3); font-weight: 700; }
.print__cap span:last-child { color: var(--ink-muted); font-weight: 500; font-size: .9375rem; }

/* ==========================================================
   CLIENTS
   ========================================================== */
.clients__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(12px, 2vw, 24px); }
.clients__grid li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.clients__grid img { width: 100%; height: auto; max-width: 116px; aspect-ratio: 1; border-radius: 50%; box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.clients__grid li:hover img { transform: translateY(-4px) scale(1.04); box-shadow: var(--shadow-2); }
.clients__grid span { font-size: .8125rem; font-weight: 600; color: var(--ink-muted); line-height: 1.3; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,128,0,.18), transparent); inset-inline-start: -200px; bottom: -260px; }
.contact__grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; }
.contact__list { display: grid; gap: var(--s-3); margin-top: var(--s-7); }
.contact__list a { display: inline-flex; align-items: center; gap: var(--s-4); text-decoration: none; font-weight: 600; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); padding: 6px 0; min-height: 44px; }
.contact__list a:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.contact__list svg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: rgba(255,128,0,.14); stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.form { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-3); display: grid; gap: var(--s-4); }
.form__title { font: 800 1.5rem/1.2 var(--f-display); font-stretch: 108%; margin-bottom: var(--s-1); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; padding: 0; }
.req { color: var(--accent-ink); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream-50);
  font: inherit; color: var(--ink); transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(7,55,102,.12); }
.field input[aria-invalid="true"] { border-color: #c62828; }
.field__err { color: #b3261e; font-size: .875rem; min-height: 0; }
.field__err:empty { display: none; }
.chips__row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 6px; }
.chips__row label { position: relative; cursor: pointer; }
.chips__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips__row span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 600; transition: all var(--dur-1); }
.chips__row input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chips__row input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
.form__status { font-size: .9375rem; color: #1b6e3a; font-weight: 600; }
.form__status:empty { display: none; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--navy-950); color: var(--on-dark-muted); padding-block: var(--s-8) var(--s-6); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-5) var(--s-7); }
.footer__logo { width: 170px; height: auto; grid-row: span 2; }
.footer__tag { color: #fff; font: 700 1.125rem/1.3 var(--f-display); }
.footer__links { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-self: end; }
.footer__links a { text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.footer__links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.footer__copy { font-size: .875rem; grid-column: 2 / -1; }

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lb { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(2,19,39,.96); color: #fff; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn var(--dur-2) var(--ease-out); }
.lb::backdrop { background: rgba(2,19,39,.7); }
@keyframes lbIn { from { opacity: 0; transform: scale(.98); } }
.lb__top { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 3vw, 32px); gap: var(--s-4); }
.lb__meta { display: flex; align-items: center; gap: var(--s-3); }
.lb__logo { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.lb__logo[src=""] { display: none; }
.lb__title { font: 800 1.25rem/1.2 var(--f-display); }
.lb__count { font-size: .875rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.lb__btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: background-color var(--dur-1); }
.lb__btn:hover { background: rgba(255,255,255,.2); }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(64px, 8vw, 96px); min-height: 0; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: var(--shadow-3); }
.lb__img.is-swap { animation: swap var(--dur-2) var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: scale(.985); } }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lb__prev { inset-inline-start: clamp(8px, 2vw, 24px); }
.lb__next { inset-inline-end: clamp(8px, 2vw, 24px); }
[dir="rtl"] .lb__nav svg { transform: scaleX(-1); }
.lb__thumbs { display: flex; justify-content: center; gap: 8px; padding: 16px; overflow-x: auto; }
.lb__thumbs button { all: unset; cursor: pointer; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; opacity: .5; flex: none; outline-offset: 2px; transition: opacity var(--dur-1); }
.lb__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.lb__thumbs button:hover { opacity: .9; }
.lb__thumbs button:focus-visible { outline: 3px solid var(--ring); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   REVEAL
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc__card { min-height: 0; }
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
  .work__item, .work__item.is-wide { grid-column: span 6; }
  .work__item.is-wide .project { aspect-ratio: 4/4.4; height: auto; }
}
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: var(--navy-900); border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out), visibility 0s var(--dur-2);
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__links a, .nav.is-solid .nav__links a:not(.nav__cta) { color: #fff; padding: 14px 16px; font-size: 1.0625rem; }
  .nav__links .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav__logo { height: 36px; }
  .nav__tools { margin-inline-start: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stack { max-width: 440px; margin-top: var(--s-5); }
  .about__grid, .vm, .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .footer__logo { grid-row: auto; }
  .footer__links { justify-self: start; margin-inline-start: -12px; }
  .footer__copy { grid-column: auto; }
}
@media (max-width: 600px) {
  .svc { grid-template-columns: 1fr; }
  .work__item, .work__item.is-wide { grid-column: span 12; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .print__grid { columns: 1; }
  .print__cap { flex-direction: column; gap: 0; font-size: .9375rem; }
  .card__badge { width: 54px; height: 54px; inset-inline-end: -10px; top: -10px; }
  .hero__orb { width: 44px; height: 44px; }
  .lb__stage { padding: 0 12px; }
  .lb__nav { top: auto; bottom: -64px; translate: none; }
  .lb__thumbs { padding-inline: 72px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__dup { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
