/* ============================================================
   Digiscrypt Technologies — Brand stylesheet
   Palette: Onyx #17140E · Gold #C8A24A · Bone #F3EFE6
   ============================================================ */

:root {
  /* Brand */
  --onyx:        #17140E;
  --onyx-900:    #0E0C08;
  --onyx-800:    #1C1813;
  --onyx-700:    #2A251C;
  --gold:        #C8A24A;
  --gold-soft:   #D8B968;
  --gold-deep:   #A8842F;
  --bone:        #F3EFE6;
  --bone-2:      #EFEBE2;
  --bone-3:      #E6E1D4;

  /* Semantic — light surfaces */
  --bg:          var(--bone);
  --bg-alt:      var(--bone-2);
  --ink:         #1A1610;
  --ink-soft:    #5C554A;
  --ink-faint:   #8A8275;
  --line:        rgba(23,20,14,.12);
  --line-soft:   rgba(23,20,14,.07);

  /* On dark */
  --paper:       #F3EFE6;
  --paper-soft:  rgba(243,239,230,.66);
  --paper-faint: rgba(243,239,230,.40);
  --line-dark:   rgba(243,239,230,.14);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif:   "Spectral", Georgia, "Times New Roman", serif;

  /* Scale */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(23,20,14,.06), 0 4px 16px rgba(23,20,14,.05);
  --shadow:    0 14px 40px -18px rgba(23,20,14,.30);
  --shadow-gold: 0 18px 50px -22px rgba(168,132,47,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--onyx); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.section--dark { background: var(--onyx-900); color: var(--paper); }
.section--onyx { background: var(--onyx); color: var(--paper); }
.section--alt { background: var(--bg-alt); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; color: inherit; }
.display { font-size: clamp(1.95rem, 6.6vw, 5rem); letter-spacing: -.035em; overflow-wrap: break-word; }
h2.title { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.01em; }
p { color: var(--ink-soft); }
.section--dark p, .section--onyx p { color: var(--paper-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .6em;
}
.section--dark .eyebrow, .section--onyx .eyebrow { color: var(--gold-soft); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 56ch; }
.section--dark .lead, .section--onyx .lead { color: var(--paper-soft); }
.text-gold { color: var(--gold-deep); }
.section--dark .text-gold, .section--onyx .text-gold { color: var(--gold-soft); }
.mono { font-family: var(--font-mono); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .title { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--onyx); --fg-btn: var(--bone);
  display: inline-flex; align-items: center; gap: .55em;
  padding: 15px 26px; border-radius: 100px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
  background: var(--bg-btn); color: var(--fg-btn);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { --bg-btn: var(--gold); --fg-btn: var(--onyx); }
.btn--gold:hover { box-shadow: var(--shadow-gold); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line); }
.section--dark .btn--ghost, .section--onyx .btn--ghost { box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--lg { padding: 18px 34px; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--gold-deep);
}
.section--dark .link-arrow, .section--onyx .link-arrow { color: var(--gold-soft); }
.link-arrow svg { width: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; }

/* ---------- Logo lockup (monoline-SVG mark + wordmark) ---------- */
.logo { display: inline-flex; align-items: center; gap: .58em; font-size: 19px; line-height: 1; user-select: none; }
.logo .lk { width: 2.5em; height: 2.5em; flex: none; display: block; overflow: visible; }
.logo .lk path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.logo .lk .lk-bowl { stroke: var(--onyx); }
.logo .lk .lk-stem { stroke: var(--gold); }
.logo .lk .lk-scan { stroke: var(--gold-soft); opacity: 0; }
.logo-text { display: flex; flex-direction: column; gap: .2em; position: relative; }
/* tiny scanner-bot that "writes" the name on load */
.logo-bot { position: absolute; left: 0; top: -1.05em; width: 1.05em; height: 1.14em; opacity: 0; pointer-events: none; overflow: visible; }
.logo-bot .bot-ink { fill: var(--onyx); stroke: var(--onyx); }
.logo-bot .bot-gold { fill: var(--gold); }
.logo-bot .bot-eye { fill: var(--gold-soft); }
.logo-bot .bot-beam { fill: var(--gold); opacity: .22; }
.logo--light .logo-bot .bot-ink { fill: var(--bone); stroke: var(--bone); }
.logo-name {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.3em;
  letter-spacing: .05em; color: var(--onyx); white-space: nowrap;
}
.logo-sub {
  font-family: var(--font-mono); font-weight: 500; font-size: .44em;
  letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap;
}
/* Reversed lockup for dark backgrounds */
.logo--light .lk .lk-bowl { stroke: var(--bone); }
.logo--light .logo-name { color: var(--bone); }
.logo--light .logo-sub { color: var(--gold-soft); }

/* Intro draw-on animation (header logo on load) */
.logo--anim .lk path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.logo--anim .lk-bowl { animation: lkDraw .9s var(--ease) .15s forwards; }
.logo--anim .lk-stem { animation: lkDraw .55s var(--ease) .62s forwards; }
/* security "scan glint" sweeps the D after it draws */
.logo--anim .lk .lk-scan { stroke-dasharray: .08 .92; stroke-dashoffset: 1; animation: lkScan 1.25s var(--ease) 1.15s 1 forwards; }
/* the bot rolls across and the name is "written" beneath it */
.logo--anim .logo-name { clip-path: inset(0 100% 0 0); animation: nameWrite 1.2s var(--ease) 1s forwards; }
.logo--anim .logo-sub { opacity: 0; animation: lkFade .6s var(--ease) 1.15s forwards; }
.logo--anim .logo-bot { animation: botWrite 2.7s var(--ease) .9s forwards; }
.logo--anim .logo-bot .bot-eye { animation: botBlink 1s ease-in-out infinite; }
@keyframes lkDraw { to { stroke-dashoffset: 0; } }
@keyframes lkScan { 0% { opacity: 0; stroke-dashoffset: 1; } 12% { opacity: .95; } 86% { opacity: .95; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes lkFade { from { opacity: 0; transform: translateX(-7px); } to { opacity: 1; transform: none; } }
@keyframes nameWrite { to { clip-path: inset(0 0 0 0); } }
@keyframes botWrite {
  0%   { opacity: 0; left: -8%;  transform: translate(0, 2px) scale(.92); }
  9%   { opacity: 1; transform: translate(0, 0) scale(1); }
  44%  { left: 96%;  transform: translate(0, 0) scale(1); }   /* name finished writing */
  /* victory circle around the end of the name */
  53%  { transform: translate(6px, -9px) scale(1); }
  61%  { transform: translate(13px, 0) scale(1); }
  69%  { transform: translate(6px, 9px) scale(1); }
  76%  { left: 96%; transform: translate(0, 0) scale(1); }
  /* roll back across the name and exit left */
  96%  { left: -6%;  opacity: 1; transform: translate(0, 0) scale(.96); }
  100% { left: -11%; opacity: 0; transform: translate(0, 0) scale(.9); }
}
@keyframes botBlink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .logo--anim .lk-bowl, .logo--anim .lk-stem { stroke-dashoffset: 0; animation: none; }
  .logo--anim .lk .lk-scan { animation: none; opacity: 0; }
  .logo--anim .logo-name { clip-path: none; animation: none; }
  .logo--anim .logo-sub { opacity: 1; animation: none; }
  .logo--anim .logo-bot { display: none; }
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 100px; font-size: .94rem; font-weight: 500;
  color: var(--ink-soft); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--line-soft); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 150px; padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(200,162,74,.16), transparent 60%),
    radial-gradient(50% 45% at 10% 100%, rgba(200,162,74,.08), transparent 60%);
  animation: heroBreathe 7.5s ease-in-out infinite;
}
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 85%);
}
/* a soft gold light that slowly drifts across the grid — subtle "shine" */
.hero-grid::after {
  content: ""; position: absolute; inset: -25%;
  background: radial-gradient(26% 26% at 50% 50%, rgba(200,162,74,.20), transparent 70%);
  animation: heroDrift 17s ease-in-out infinite;
}
@keyframes heroBreathe { 0%,100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes heroDrift {
  0%   { transform: translate(-12%, 8%); }
  50%  { transform: translate(22%, -10%); }
  100% { transform: translate(-12%, 8%); }
}
/* glassy light sheen that occasionally glints across the grid */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(108deg, transparent 42%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.18) 51%, transparent 60%);
  background-size: 280% 100%; background-position: 130% 0; opacity: 0;
  animation: heroGlass 8s ease-in-out 2.4s infinite;
}
@keyframes heroGlass {
  0%  { background-position: 130% 0; opacity: 0; }
  7%  { opacity: .6; }
  24% { background-position: -40% 0; opacity: 0; }
  100% { background-position: -40% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-grid::after { animation: none; }
}
.hero-inner { max-width: 940px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 8px 8px 8px 16px; border-radius: 100px; background: rgba(23,20,14,.04);
  box-shadow: inset 0 0 0 1px var(--line); font-size: .84rem; color: var(--ink-soft);
}
.hero .pill b { color: var(--ink); font-weight: 600; }
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #34a853; box-shadow: 0 0 0 4px rgba(52,168,83,.18); }
.hero .pill .tag { font-family: var(--font-mono); font-size: .72rem; padding: 4px 10px; border-radius: 100px; background: var(--onyx); color: var(--gold-soft); letter-spacing: .04em; }
.hero h1 { margin-bottom: 26px; font-size: clamp(1.85rem, 4.6vw, 3.35rem); letter-spacing: -.025em; }
.hero h1 .hl { color: var(--gold-deep); }
.hero .lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); margin-bottom: 38px; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero stat trio */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(48px, 7vw, 80px);
  background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hero-stats .stat { background: var(--bg); padding: clamp(22px, 3vw, 34px); }
.hero-stats .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.hero-stats .num .plus { color: var(--gold-deep); }
.hero-stats .label { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }

/* ============================================================
   MARQUEE — project wall
   ============================================================ */
.marquee { padding-block: clamp(28px, 4vw, 44px); border-block: 1px solid var(--line-dark); overflow: hidden; }
.marquee-head { text-align: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--paper-faint); margin-bottom: 26px; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--paper-soft); white-space: nowrap; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: .7em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ============================================================
   ABOUT / values
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about-copy p + p { margin-top: 18px; }
.values { display: grid; gap: 14px; }
.value-card { padding: 24px 26px; border-radius: var(--radius); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.value-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.value-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 1.12rem; }
.value-card .vk { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--onyx); color: var(--gold-soft); font-family: var(--font-mono); font-size: .9rem; }
.value-card p { font-size: .96rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service {
  position: relative; padding: clamp(28px, 3.4vw, 40px); border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 100% at 100% 0, rgba(200,162,74,.10), transparent 45%); opacity: 0; transition: opacity .45s; }
.service:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(200,162,74,.35), var(--shadow); }
.service:hover::after { opacity: 1; }
.service .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(160deg, var(--onyx-700), var(--onyx)); color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.service .ico svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: 10px; font-size: 1.28rem; }
.service p { font-size: .98rem; }
.service .num { position: absolute; top: 26px; right: 30px; font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint); }

/* ============================================================
   OSS SECURITY (dark) — examples + stats
   ============================================================ */
.oss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.oss-examples { display: grid; gap: 2px; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-dark); }
.oss-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 22px; background: var(--onyx-800); transition: background .3s; }
.oss-item:hover { background: var(--onyx-700); }
.oss-item .ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(200,162,74,.12); color: var(--gold-soft); font-size: 1.1rem; }
.oss-item h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--paper); margin-bottom: 3px; }
.oss-item p { font-size: .9rem; color: var(--paper-soft); margin: 0; }
.oss-item .tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.oss-item .tags code { font-family: var(--font-mono); font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: rgba(243,239,230,.06); color: var(--gold-soft); }

/* big stat band */
.stat-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.stat-band .stat { background: var(--onyx-900); padding: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 28px); text-align: center; }
.stat-band .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -.04em; color: var(--paper); line-height: 1; }
.stat-band .num .plus, .stat-band .num .x { color: var(--gold-soft); }
.stat-band .label { margin-top: 12px; font-size: .82rem; color: var(--paper-faint); letter-spacing: .02em; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.step::after { counter-increment: step; content: counter(step,decimal-leading-zero); position: absolute; top: 0; left: 0; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: .78rem; color: var(--onyx); background: var(--gold); padding: 3px 9px; border-radius: 100px; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { font-size: .95rem; }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { padding: 28px; border-radius: var(--radius); background: rgba(243,239,230,.04); box-shadow: inset 0 0 0 1px var(--line-dark); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.why-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(200,162,74,.4); }
.why-card .ck { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; background: var(--gold); color: var(--onyx); }
.why-card .ck svg { width: 17px; }
.why-card h3 { color: var(--paper); font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { font-size: .95rem; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 16px; border-radius: 100px; font-size: .86rem; font-weight: 500; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); transition: .25s; }
.filter:hover { color: var(--ink); }
.filter.active { background: var(--onyx); color: var(--bone); box-shadow: none; }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.client {
  position: relative; padding: 28px 24px 24px; border-radius: var(--radius-lg); background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .35s;
}
.client::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(130% 90% at 100% 0, rgba(200,162,74,.12), transparent 52%);
  opacity: 0; transition: opacity .4s;
}
.client:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(200,162,74,.42), var(--shadow); }
.client:hover::after { opacity: 1; }
.client.hide { display: none; }
.client .flag-chip { position: absolute; top: 18px; right: 18px; font-size: 1.18rem; line-height: 1; z-index: 1; }
.client .mono-tile {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  background: linear-gradient(155deg, var(--onyx-700), var(--onyx)); color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(243,239,230,.07), var(--shadow-sm);
  transition: transform .45s var(--ease); position: relative; z-index: 1;
}
.client:hover .mono-tile { transform: scale(1.07) rotate(-3deg); }
.client h3 { font-size: 1.12rem; letter-spacing: -.01em; margin-bottom: 6px; position: relative; z-index: 1; }
.client .ctag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); position: relative; z-index: 1; }
.client .cloc { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .82rem; font-weight: 500; color: var(--ink-soft); position: relative; z-index: 1; }
.client.is-featured { background: linear-gradient(162deg, rgba(200,162,74,.12), var(--bg) 58%); box-shadow: inset 0 0 0 1px rgba(200,162,74,.34); }
.client.is-featured .mono-tile { background: linear-gradient(155deg, var(--gold-soft), var(--gold-deep)); color: var(--onyx); box-shadow: var(--shadow-sm); }
.client.is-featured .ctag { color: var(--gold-deep); }

/* ============================================================
   NEWSROOM
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(200,162,74,.35), var(--shadow); }
.news-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bone-3); }
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-media--logo { background: #fff; display: grid; place-items: center; padding: 14%; }
.news-media--logo img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.news-card:hover .news-media--logo img { transform: none; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 2.6vw, 30px); }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.news-cat { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--onyx); background: var(--gold); padding: 5px 11px; border-radius: 100px; white-space: nowrap; }
.news-cat.alt { background: var(--onyx); color: var(--gold-soft); }
.news-date { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-faint); white-space: nowrap; }
.news-card h3 { font-size: 1.2rem; line-height: 1.2; margin-bottom: 11px; letter-spacing: -.01em; }
.news-card p { font-size: .95rem; }
.news-card .news-loc { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: .42em; font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.news-card .news-loc .flag { font-size: 1.05em; }

/* ============================================================
   CAREERS teaser
   ============================================================ */
.careers-cta { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--onyx); color: var(--paper);
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.careers-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 100% 0, rgba(200,162,74,.18), transparent 55%); }
.careers-cta > * { position: relative; }
.careers-cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.careers-cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { text-align: center; }
.final-cta .display { margin: 0 auto 22px; max-width: 16ch; }
.final-cta .lead { margin: 0 auto 36px; }
.final-cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--onyx-900); color: var(--paper-soft); padding-block: clamp(54px, 7vw, 84px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 36px; margin-bottom: 18px; }
.footer-brand p { font-size: .94rem; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--paper-soft); transition: .25s; }
.footer-social a:hover { color: var(--onyx); background: var(--gold); box-shadow: none; }
.footer-social svg { width: 18px; }
.footer-col h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-faint); margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; font-size: .95rem; color: var(--paper-soft); transition: color .2s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: .85rem; color: var(--paper-faint); }
.footer-bottom .mono { font-family: var(--font-mono); font-size: .78rem; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Careers page
   ============================================================ */
.page-hero { padding-top: 160px; padding-bottom: clamp(40px, 6vw, 70px); }
.roles { display: grid; gap: 14px; }
.role { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 26px 30px; border-radius: var(--radius);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.role:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(200,162,74,.4), var(--shadow); }
.role h3 { font-size: 1.22rem; margin-bottom: 6px; }
.role .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.role .meta span { font-family: var(--font-mono); font-size: .73rem; padding: 4px 11px; border-radius: 100px; background: var(--bg-alt); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); background: rgba(200,162,74,.08); box-shadow: inset 0 0 0 1px rgba(200,162,74,.28); }
.note .ic { color: var(--gold-deep); flex: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .stat-band { grid-template-columns: repeat(3, 1fr); }
  .stat-band .stat:nth-child(4) { grid-column: 1 / 2; } /* keep tidy */
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .about-grid, .oss-grid, .careers-cta, .footer-top { grid-template-columns: 1fr; }
  .services-grid, .why-grid, .process-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .careers-cta .actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero-stats, .services-grid, .why-grid, .process-grid, .clients-grid, .stat-band, .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stat-band .stat:nth-child(5) { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .role { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .hero-stats, .services-grid, .why-grid, .process-grid, .clients-grid { grid-template-columns: 1fr; }
  .hero .pill { flex-wrap: wrap; }
}

/* ============================================================
   Mobile menu
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column;
  padding: 100px var(--gutter) 40px; background: var(--bone);
  transform: translateX(100%); transition: transform .45s var(--ease); visibility: hidden;
  pointer-events: none;
}
body.nav-open .mobile-menu { transform: none; visibility: visible; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.mobile-menu a.m-link { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu a.m-link:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ============================================================
   FAQ chat widget
   ============================================================ */
.chat { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 90; }
body.nav-open .chat { opacity: 0; pointer-events: none; }
.chat-fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--onyx);
  color: var(--gold-soft); display: grid; place-items: center; margin-left: auto;
  box-shadow: var(--shadow), 0 8px 22px rgba(14,12,8,.35);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); }
.chat-fab svg { width: 26px; height: 26px; position: absolute; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.chat-fab-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
body.chat-open .chat-fab-open { opacity: 0; transform: rotate(90deg) scale(.5); }
body.chat-open .chat-fab-close { opacity: 1; transform: none; }
.chat-fab-dot { position: absolute; top: 9px; right: 9px; width: 11px; height: 11px; border-radius: 50%; background: #34a853; box-shadow: 0 0 0 3px var(--onyx); }
body.chat-open .chat-fab-dot { opacity: 0; }

.chat-panel {
  position: absolute; right: 0; bottom: 72px; width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: var(--bone); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 64px -18px rgba(14,12,8,.5), inset 0 0 0 1px var(--line);
  transform: translateY(16px) scale(.96); transform-origin: bottom right; opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s;
}
body.chat-open .chat-panel { transform: none; opacity: 1; visibility: visible; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: var(--onyx); color: var(--bone); }
.chat-ava { width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(243,239,230,.08); display: grid; place-items: center; }
.chat-ava svg { width: 24px; height: 24px; overflow: visible; }
.chat-head strong { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; letter-spacing: .02em; display: block; line-height: 1.2; }
.chat-head span { font-family: var(--font-mono); font-size: .66rem; color: var(--paper-faint); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-on { width: 7px; height: 7px; border-radius: 50%; background: #34a853; display: inline-block; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.chat-msg { max-width: 85%; padding: 11px 14px; border-radius: 15px; font-size: .9rem; line-height: 1.5; }
.chat-msg.bot { background: var(--bg-alt); color: var(--ink); border-bottom-left-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); align-self: flex-start; }
.chat-msg.user { background: var(--onyx); color: var(--bone); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg a { color: var(--gold-deep); font-weight: 600; }
.chat-typing { letter-spacing: 2px; opacity: .55; animation: chatPulse 1s ease-in-out infinite; }
@keyframes chatPulse { 0%,100% { opacity: .35; } 50% { opacity: .8; } }
.chat-qs { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 16px 12px; }
.chat-q { font-size: .79rem; padding: 7px 12px; border-radius: 100px; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.chat-q:hover { color: var(--onyx); box-shadow: inset 0 0 0 1px var(--gold); background: rgba(200,162,74,.09); }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; border: 0; background: var(--bg-alt); border-radius: 100px; padding: 11px 16px; font: inherit; font-size: .9rem; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.chat-input input:focus { box-shadow: inset 0 0 0 1.5px var(--gold); }
.chat-input button { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--onyx); display: grid; place-items: center; transition: background .2s; }
.chat-input button:hover { background: var(--gold-soft); }
.chat-input button svg { width: 18px; }
@media (prefers-reduced-motion: reduce) { .chat-panel, .chat-fab svg { transition: opacity .2s; } .chat-typing { animation: none; } }
