/* ==========================================================================
   DNP — Dark premium agency  |  v5
   Inspired by geniusee.com / simform.com / dev.co
   Deep navy + electric cyan · Manrope · case-driven
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  /* Palette — dark premium navy + cyan ----------------------------------- */
  --bg:           #0a0e15;
  --bg-2:         #0c1119;
  --surface:      #10161f;
  --surface-2:    #161d27;
  --surface-3:    #1b2330;
  --line:         rgba(255,255,255,0.07);
  --line-strong:  rgba(255,255,255,0.14);
  --line-bright:  rgba(255,255,255,0.22);

  --text:         #e7ebf2;
  --text-soft:    #c4cad6;
  --mute:         #8a93a3;
  --dim:          #5a6373;

  --accent:       #18b6ff;      /* electric blue */
  --accent-soft:  #5fcfff;
  --accent-deep:  #0d8fd6;
  --accent-glow:  rgba(24,182,255,0.22);
  --accent-2:     #a8f0d4;      /* mint, secondary */
  --warm:         #ffb260;      /* amber for badges */
  --ok:           #4cdb8e;
  --danger:       #ff6b80;

  /* Type */
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tracking-wide: 0.06em;

  /* Layout */
  --container: 1320px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

::selection { background: var(--accent); color: var(--bg); }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* Typography ============================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--text);
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
h4 { font-size: 0.78rem; letter-spacing: var(--tracking-wide); text-transform: uppercase; font-weight: 500; color: var(--mute); margin: 0; }

p { margin: 0 0 1rem; }
em { font-style: normal; color: var(--accent); }

a { color: inherit; transition: color 180ms var(--ease), opacity 180ms var(--ease); }
a:hover { color: var(--accent); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
}

.muted { color: var(--mute); }

/* Buttons ================================================================= */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 500;
  letter-spacing: -0.005em; line-height: 1;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #051b27;
  border-color: var(--accent);
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #051b27; box-shadow: 0 10px 32px -8px var(--accent-glow); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(24,182,255,0.05); }

.btn-large { padding: 1rem 1.6rem; font-size: 1rem; }

/* Site header ============================================================= */

.site-header {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(10,14,21,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 2rem;
  height: 70px;
}
.site-mark {
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 1.15rem;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.site-mark::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(76,219,142,0.18);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(76,219,142,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(76,219,142,0.0); }
}

.site-nav { display: none; margin-left: auto; gap: 0.1rem; align-items: center; }
@media (min-width: 900px) { .site-nav { display: inline-flex; } }
.site-nav a {
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.site-header__right { display: flex; gap: 0.85rem; align-items: center; margin-left: auto; }
@media (min-width: 900px) { .site-header__right { margin-left: 0; } }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0.05rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: var(--tracking-wide);
  padding: 0.32rem 0.55rem; border-radius: 999px;
  color: var(--mute);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-current { background: var(--accent); color: #051b27; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text);
}
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 900px) { .menu-btn { display: none; } }

/* Mobile nav ================================================================ */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 320ms var(--ease-out);
  display: flex; flex-direction: column;
}
.mobile-nav .container { display: flex; flex-direction: column; flex: 1; padding-top: 1.25rem; padding-bottom: 2rem; }
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.mobile-nav__list { list-style: none; margin: 2.5rem 0 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav__list a {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.85rem; font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  padding: 0.4rem 0;
}
.mobile-nav__list a:hover { color: var(--accent); }

/* Hero with side mockup =================================================== */

.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 80% 20%, rgba(24,182,255,0.08), transparent 60%);
  pointer-events: none; z-index: -1;
}
.hero__grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.95rem 0.42rem 0.62rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  font-size: 0.74rem; font-weight: 500; letter-spacing: var(--tracking-wide); text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero__eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(76,219,142,0.18);
  animation: pulse 2.6s var(--ease-out) infinite;
}

.hero__title {
  font-weight: 600;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0 0 1.5rem;
  max-width: 16ch;
}
.hero__title em {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--mute);
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: rgba(255,255,255,0.02);
}
.hero__chip svg { width: 14px; height: 14px; color: var(--accent); }

/* Hero mockup (right side) */
.hero__mockup {
  position: relative;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px -30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(24,182,255,0.06);
}
.hero__mockup::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(24,182,255,0.13), transparent 70%);
  pointer-events: none;
}
.mockup-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.mockup-bar i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2a3041; }
.mockup-bar i:first-child { background: #ff6b80; }
.mockup-bar i:nth-child(2) { background: #ffb260; }
.mockup-bar i:nth-child(3) { background: var(--ok); }
.mockup-bar span { margin-left: auto; font-size: 0.72rem; color: var(--mute); letter-spacing: 0.04em; }

.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.mockup-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.85rem;
}
.mockup-stat strong { display: block; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.mockup-stat strong .ac { color: var(--accent); }
.mockup-stat span { display: block; font-size: 0.72rem; color: var(--mute); margin-top: 0.15rem; letter-spacing: 0.02em; }
.mockup-stat .delta { color: var(--ok); font-weight: 500; }
.mockup-stat .delta.dn { color: var(--accent); }

.mockup-chart { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.mockup-chart svg { width: 100%; height: 120px; }
.mockup-chart .legend { display: flex; gap: 0.85rem; margin-top: 0.75rem; font-size: 0.72rem; color: var(--mute); letter-spacing: 0.04em; }
.mockup-chart .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }
.mockup-chart .legend i.a1 { background: var(--accent); }
.mockup-chart .legend i.a2 { background: var(--accent-2); }

.mockup-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}
.mockup-row:last-child { border-bottom: 0; }
.mockup-row .l { color: var(--text-soft); }
.mockup-row .r { color: var(--mute); }
.mockup-row .ok { color: var(--ok); font-weight: 500; }

/* Clients grid (replaces marquee) ========================================== */

.clients-grid {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.clients-grid__head {
  text-align: center;
  margin-bottom: 2rem;
}
.clients-grid__head .eyebrow { display: block; margin-bottom: 0.55rem; }
.clients-grid__head h2 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 500; color: var(--mute); letter-spacing: -0.01em; }

.clients-grid__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
@media (min-width: 600px)  { .clients-grid__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .clients-grid__list { grid-template-columns: repeat(5, 1fr); } }

.client-cell {
  display: grid; place-items: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.05rem;
  color: var(--text-soft);
  text-align: center;
  min-height: 92px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.client-cell:hover { color: var(--accent); background: rgba(24,182,255,0.04); }
@media (max-width: 599px) {
  .client-cell:nth-child(2n) { border-right: 0; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .client-cell:nth-child(3n) { border-right: 0; }
}
@media (min-width: 900px) {
  .client-cell:nth-child(5n) { border-right: 0; }
}

/* Trust badges strip ====================================================== */

.trust {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.trust__head { text-align: center; margin-bottom: 1.5rem; }
.trust__head .eyebrow { display: block; }
.trust__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 700px)  { .trust__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .trust__list { grid-template-columns: repeat(6, 1fr); } }

.trust__badge {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.trust__badge:hover { border-color: var(--line-strong); background: var(--surface-2); }
.trust__badge-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(24,182,255,0.10);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid rgba(24,182,255,0.25);
}
.trust__badge-mark.gold { background: rgba(255,178,96,0.10); color: var(--warm); border-color: rgba(255,178,96,0.25); }
.trust__badge strong { display: block; color: var(--text); font-size: 0.92rem; font-weight: 600; line-height: 1.1; }
.trust__badge span { display: block; color: var(--mute); font-size: 0.74rem; letter-spacing: 0.03em; margin-top: 0.15rem; }

/* Stats strip ============================================================= */

.stats {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.stats__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
@media (min-width: 720px)  { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stats__item {
  padding: 2.25rem 1.5rem 2.25rem 1.75rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.85rem;
  position: relative;
}
.stats__item::before {
  content: ''; position: absolute; left: 1.75rem; top: 0; width: 28px; height: 2px;
  background: var(--accent);
}
@media (min-width: 720px) and (max-width: 1099px) {
  .stats__item:nth-child(2n) { border-right: 0; }
  .stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1100px) { .stats__item:last-child { border-right: 0; } }
@media (max-width: 719px) {
  .stats__item { border-right: 0; }
  .stats__item:not(:last-child) { border-bottom: 1px solid var(--line); }
}
.stats__item strong {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 0.92;
  color: var(--text);
  font-feature-settings: 'tnum';
  margin-top: 0.85rem;
}
.stats__item .suf { color: var(--accent); font-weight: 500; margin-left: 0.05em; }
.stats__item span:last-child { color: var(--mute); font-size: 0.95rem; line-height: 1.45; }

/* Section title ============================================================ */

.sec-title {
  display: grid; gap: 1.25rem;
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}
@media (min-width: 900px) { .sec-title { grid-template-columns: minmax(140px, auto) 1fr minmax(220px, auto); align-items: end; } }
.sec-title__num {
  font-size: 0.78rem; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; font-weight: 500; color: var(--accent);
}
.sec-title h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.025em; font-weight: 600; }
.sec-title h2 em { color: var(--accent); }
.sec-title__hint { font-size: 0.92rem; color: var(--mute); text-align: right; max-width: 32ch; line-height: 1.45; }

/* About ==================================================================== */

.about { padding-block: var(--section-y); }
.row-2 { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .row-2 { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.about__lead {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}
.about__lead em { color: var(--accent); }
.about__body p { color: var(--mute); font-size: 1.02rem; margin-bottom: 1rem; }

.about__values {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.about__value {
  padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--line);
  transition: background 180ms var(--ease);
}
.about__value:last-child { border-right: 0; }
.about__value:hover { background: var(--surface-2); }
.about__value-num { font-size: 0.74rem; letter-spacing: var(--tracking-wide); font-weight: 500; color: var(--accent); display: block; margin-bottom: 1.25rem; }
.about__value h3 { margin: 0 0 0.6rem; font-size: 1.1rem; color: var(--text); }
.about__value p { color: var(--mute); font-size: 0.95rem; margin: 0; line-height: 1.55; }

/* Industries cards ========================================================= */

.industries { padding-block: var(--section-y); }
.industries__head { display: grid; gap: 1rem; max-width: 64ch; margin-bottom: 2.5rem; }
.industries__title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 0; color: var(--text); }
.industries__title em { color: var(--accent); }

.industries__feat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px)  { .industries__feat { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .industries__feat { grid-template-columns: repeat(4, 1fr); } }

.industry-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease);
  min-height: 240px;
  color: var(--text);
}
.industry-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.industry-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}
.industry-card.fintech::after  { background: radial-gradient(circle, var(--accent), transparent 60%); }
.industry-card.saas::after     { background: radial-gradient(circle, var(--accent-2), transparent 60%); }
.industry-card.ecom::after     { background: radial-gradient(circle, var(--warm), transparent 60%); }
.industry-card.hosp::after     { background: radial-gradient(circle, #c184ff, transparent 60%); }

.industry-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(24,182,255,0.10);
  border: 1px solid rgba(24,182,255,0.22);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.industry-card__icon svg { width: 22px; height: 22px; }
.industry-card h3 { font-size: 1.2rem; margin: 0 0 0.55rem; letter-spacing: -0.02em; position: relative; z-index: 1; }
.industry-card p { color: var(--mute); font-size: 0.92rem; line-height: 1.5; margin: 0 0 1rem; position: relative; z-index: 1; }
.industry-card__tags {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-top: auto;
  position: relative; z-index: 1;
}
.industry-card__tag {
  font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
}

.industries__more {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.industries__more-label {
  display: inline-flex; align-items: center;
  font-size: 0.74rem; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--mute);
  margin-right: 0.5rem;
  padding: 0.6rem 0;
}
.industry-chip {
  display: inline-flex; align-items: center;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  background: var(--surface);
}
.industry-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(24,182,255,0.04); }

/* Services grid ============================================================ */

.svc { padding-block: var(--section-y); }
.svc__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 720px)  { .svc__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc__grid { grid-template-columns: repeat(3, 1fr); } }

.svc__card {
  display: flex; flex-direction: column;
  gap: 1rem;
  padding: 1.6rem 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  color: var(--text);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease);
  min-height: 250px;
  overflow: hidden;
}
.svc__card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.svc__card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.svc__card:hover::before { transform: scaleX(1); }
.svc__card::after {
  content: '↗'; position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 1.05rem; color: var(--mute);
  transition: color 180ms var(--ease), transform 240ms var(--ease-out);
}
.svc__card:hover::after { color: var(--accent); transform: translate(3px, -3px); }
.svc__card-num { font-size: 0.74rem; letter-spacing: var(--tracking-wide); font-weight: 500; color: var(--mute); }
.svc__card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24,182,255,0.16), rgba(24,182,255,0.04));
  color: var(--accent);
  border: 1px solid rgba(24,182,255,0.22);
  display: grid; place-items: center;
}
.svc__card-icon svg { width: 22px; height: 22px; }
.svc__card h3 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.svc__card p { margin: 0; color: var(--mute); font-size: 0.94rem; line-height: 1.55; }

/* Tech stack ============================================================== */

.tech { padding-block: var(--section-y); }
.tech__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 600px)  { .tech__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .tech__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .tech__grid { grid-template-columns: repeat(6, 1fr); } }
.tech__group {
  padding: 1.75rem 1.5rem 2rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) and (max-width: 899px) { .tech__group:nth-child(2n) { border-right: 0; } }
@media (min-width: 900px) and (max-width: 1199px) { .tech__group:nth-child(3n) { border-right: 0; } }
@media (min-width: 1200px) { .tech__group:last-child { border-right: 0; } }
@media (max-width: 599px) { .tech__group { border-right: 0; } }
.tech__group h4 { color: var(--accent); margin-bottom: 1rem; }
.tech__group ul { list-style: none; padding: 0; margin: 0; }
.tech__group li { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 0.45rem; font-weight: 500; }

/* Work / portfolio ======================================================== */

.work { padding-block: var(--section-y); }
.work__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 700px)  { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .work__grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

.work__card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease);
}
.work__card:hover { transform: translateY(-3px); border-color: var(--line-strong); color: var(--text); }

.work__cover {
  aspect-ratio: 5/4;
  overflow: hidden;
  background: var(--surface-3);
  position: relative;
}
.work__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.work__card:hover .work__cover img { transform: scale(1.04); }

.work__num {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.7rem; letter-spacing: var(--tracking-wide); font-weight: 500;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 0.32rem 0.6rem; border-radius: 999px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

.work__metric {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-weight: 600; font-size: 1rem;
  color: white;
  background: rgba(24,182,255,0.85);
  padding: 0.45rem 0.75rem; border-radius: 999px;
  letter-spacing: -0.015em;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 24px -10px rgba(24,182,255,0.6);
}

.work__meta { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; }
.work__meta-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.74rem; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--mute); font-weight: 500;
}
.work__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.work__client { color: var(--mute); font-size: 0.9rem; margin: 0; }

.work__footer { margin-top: 2.5rem; display: flex; justify-content: center; }

/* Process steps ============================================================ */

.process { padding-block: var(--section-y); }
.process__grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
@media (min-width: 768px)  { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process__grid { grid-template-columns: repeat(4, 1fr); } }
.process__step {
  padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 768px) and (max-width: 1099px) {
  .process__step:nth-child(2n) { border-right: 0; }
  .process__step:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .process__step:last-child { border-right: 0; }
  .process__step { border-bottom: 0; }
}
.process__step::before {
  content: ''; position: absolute; left: 1.75rem; top: 0; width: 28px; height: 2px;
  background: var(--accent);
}
.process__num { font-size: 0.74rem; letter-spacing: var(--tracking-wide); font-weight: 500; color: var(--accent); display: block; margin: 1rem 0 1.25rem; }
.process__title { margin: 0 0 0.75rem; font-size: 1.15rem; color: var(--text); }
.process__body { color: var(--mute); font-size: 0.94rem; line-height: 1.55; margin: 0; }

/* Team ===================================================================== */

.team { padding-block: var(--section-y); }
.team__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 600px)  { .team__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1300px) { .team__grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.team-card__photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  position: relative;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.team-card:hover .team-card__photo img { transform: scale(1.04); }
.team-card__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 5rem; font-weight: 500;
  color: var(--accent); opacity: 0.6;
  letter-spacing: -0.04em;
}
.team-card__body { padding: 1.25rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.team-card__role { font-size: 0.74rem; letter-spacing: var(--tracking-wide); text-transform: uppercase; font-weight: 500; color: var(--accent); margin: 0; }
.team-card__name { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.team-card__bio { color: var(--mute); font-size: 0.92rem; line-height: 1.5; margin: 0.25rem 0 0; }
.team-card__links { margin-top: 0.85rem; display: flex; gap: 0.55rem; flex-wrap: wrap; }
.team-card__link {
  font-size: 0.72rem; font-weight: 500; letter-spacing: var(--tracking-wide); text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}
.team-card__link:hover { background: var(--accent); color: #051b27; border-color: var(--accent); }

/* Testimonial ============================================================= */

.testimonial { padding-block: clamp(4rem, 8vw, 7rem); }
.testimonial__inner {
  max-width: 920px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.testimonial__inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 100% 0%, rgba(24,182,255,0.10), transparent 60%);
  pointer-events: none;
}
.testimonial__quote {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.18;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}
.testimonial__text {
  margin: 0 0 2rem;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.34;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
  position: relative;
  max-width: 50ch;
}
.testimonial__by { display: flex; align-items: center; gap: 1rem; position: relative; }
.testimonial__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #051b27;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.2rem;
  flex-shrink: 0;
}
.testimonial__meta { display: flex; flex-direction: column; gap: 0.1rem; }
.testimonial__meta strong { color: var(--text); font-weight: 600; font-size: 1rem; }
.testimonial__meta span { color: var(--mute); font-size: 0.88rem; }
.testimonial__rating { display: flex; gap: 0.15rem; margin-left: auto; color: var(--warm); }

/* CTA ====================================================================== */

.cta-dark { padding: var(--section-y) var(--pad-x); }
.cta-dark__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(24,182,255,0.20), transparent 60%),
    radial-gradient(70% 90% at 100% 100%, rgba(168,240,212,0.10), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
}
.cta-dark__title {
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 1.5rem;
  max-width: 18ch;
}
.cta-dark__title em { color: var(--accent); }
.cta-dark__sub { color: var(--mute); max-width: 56ch; margin-bottom: 2rem; font-size: 1.05rem; }
.cta-dark__row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Contact ================================================================== */

.contact { padding-block: var(--section-y); }
.contact__lead {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}
.contact__lead em { color: var(--accent); }
.contact__info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.contact__info-item h4 { margin: 0 0 0.5rem; }
.contact__info-item p { margin: 0; color: var(--text-soft); font-size: 0.98rem; line-height: 1.5; }
.contact__info-item a { color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.contact__info-item a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; gap: 1.4rem;
}
.contact__form label {
  display: block;
  font-size: 0.74rem; letter-spacing: var(--tracking-wide); text-transform: uppercase; font-weight: 500;
  color: var(--mute);
}
.contact__form input,
.contact__form textarea {
  display: block; width: 100%;
  margin-top: 0.4rem;
  padding: 0.78rem 0;
  background: transparent; border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-sans); font-size: 1rem;
  transition: border-color 180ms var(--ease);
}
.contact__form input:focus, .contact__form textarea:focus { outline: 0; border-bottom-color: var(--accent); }
.contact__form textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0; pointer-events: none; }

.contact__submit-wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.5rem; }
.contact__feedback { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--mute); }
.contact__feedback.is-ok { color: var(--ok); }
.contact__feedback.is-error { color: var(--danger); }

/* Detail ================================================================== */

.detail { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: var(--section-y); max-width: 880px; }
.detail__back { font-size: 0.78rem; letter-spacing: var(--tracking-wide); text-transform: uppercase; font-weight: 500; color: var(--mute); display: inline-block; margin-bottom: 2.5rem; }
.detail__back:hover { color: var(--accent); }
.detail__title { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.035em; font-weight: 600; margin: 0 0 1.5rem; color: var(--text); }
.detail__title em { color: var(--accent); }
.detail__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--mute); max-width: 60ch; margin-bottom: 2rem; }
.detail__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem;
  padding: 1.25rem 0; margin: 1rem 0 2.5rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.86rem; color: var(--text);
}
.detail__meta strong { color: var(--mute); font-weight: 500; margin-right: 0.5rem; text-transform: uppercase; font-size: 0.74rem; letter-spacing: var(--tracking-wide); }
.detail__meta a { color: var(--text); }
.detail__meta a:hover { color: var(--accent); }
.detail__cover { margin: 2rem 0 2.5rem; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.detail__cover img { width: 100%; height: auto; display: block; }
.detail__body { color: var(--text-soft); font-size: 1.05rem; line-height: 1.72; }
.detail__body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; color: var(--text); }
.detail__body h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; color: var(--text); }
.detail__body p { margin: 0 0 1.1rem; }
.detail__body ul, .detail__body ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.detail__body li { margin-bottom: 0.4rem; }
.detail__body a { color: var(--accent); border-bottom: 1px solid currentColor; }
.detail__body blockquote { margin: 2rem 0; padding: 1rem 0 1rem 1.5rem; border-left: 2px solid var(--accent); color: var(--text); font-size: 1.15rem; }
.detail__gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .detail__gallery { grid-template-columns: 1fr 1fr; } }
.detail__gallery img { border-radius: var(--radius); border: 1px solid var(--line); }
.detail__cta {
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
}
.detail__cta .muted { font-size: 0.82rem; letter-spacing: var(--tracking-wide); color: var(--mute); text-transform: uppercase; font-weight: 500; }

/* Blog ===================================================================== */

.blog-list { padding-block: var(--section-y); max-width: 880px; }
.blog-card { display: block; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: padding 240ms var(--ease); }
.blog-card:hover { padding-left: 1rem; }
.blog-card__meta {
  display: flex; gap: 1.5rem; align-items: center;
  font-size: 0.74rem; letter-spacing: var(--tracking-wide); font-weight: 500;
  color: var(--mute); text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.blog-card__title { font-size: clamp(1.3rem, 2.3vw, 1.85rem); margin: 0 0 0.6rem; letter-spacing: -0.025em; color: var(--text); transition: color 200ms var(--ease); font-weight: 600; }
.blog-card:hover .blog-card__title { color: var(--accent); }
.blog-card__excerpt { color: var(--mute); margin: 0; max-width: 70ch; }
.blog-pager { margin-top: 3rem; display: flex; gap: 0.4rem; justify-content: center; }
.blog-pager a {
  font-size: 0.82rem; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line); color: var(--mute); font-weight: 500;
}
.blog-pager a:hover { color: var(--text); border-color: var(--line-strong); }
.blog-pager a.is-current { background: var(--accent); color: #051b27; border-color: var(--accent); }

.empty {
  padding: 4rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.empty__title { font-size: 1.25rem; color: var(--text); margin: 0 0 0.5rem; font-weight: 600; }
.empty__body { color: var(--mute); margin: 0; }

/* Site footer (rich) ====================================================== */

.site-footer {
  margin-top: var(--section-y);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  margin-bottom: 4rem;
}
.footer-cta__text { max-width: 56ch; }
.footer-cta__text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.footer-cta__text p { color: var(--mute); margin: 0; }

.footer-display {
  font-weight: 700;
  font-size: clamp(5rem, 22vw, 17rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  margin: 0 0 3rem;
  color: var(--text);
}

.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-block: 2rem 3rem;
  border-block: 1px solid var(--line);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 { color: var(--accent); margin: 0 0 1.25rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; color: var(--text-soft); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }

.offices {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  padding-block: 2rem 3rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .offices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .offices { grid-template-columns: repeat(3, 1fr); } }
.office {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.office h5 { color: var(--accent); margin: 0 0 0.35rem; font-size: 0.74rem; letter-spacing: var(--tracking-wide); text-transform: uppercase; font-weight: 500; }
.office strong { color: var(--text); font-weight: 600; }
.office span { color: var(--mute); font-size: 0.92rem; line-height: 1.45; }

.footer-social { margin-top: 2rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--text); font-size: 0.78rem; letter-spacing: 0.05em; font-weight: 500;
}
.footer-social a:hover { background: var(--accent); color: #051b27; border-color: var(--accent); }

.footer-bottom {
  margin-top: 2rem;
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.74rem; letter-spacing: var(--tracking-wide); font-weight: 500;
  color: var(--mute); text-transform: uppercase;
}

/* Reveal on scroll ========================================================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Topstrip (above sticky header)
   ========================================================================== */
.topstrip {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-soft);
}
.topstrip__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  height: 38px;
}
.topstrip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
  white-space: nowrap;
}
.topstrip__link:hover { color: var(--accent); }
.topstrip__link svg { width: 14px; height: 14px; color: var(--accent); }
.topstrip__sep { color: var(--dim); }
.topstrip__hours {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  color: var(--mute);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topstrip__hours .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px rgba(76,219,142,0.18);
}
@media (max-width: 720px) {
  .topstrip { font-size: 0.78rem; }
  .topstrip__inner { height: auto; padding-block: 0.55rem; gap: 0.65rem; }
  .topstrip__hours { margin-left: 0; flex-basis: 100%; }
  .topstrip__sep { display: none; }
}
@media (max-width: 480px) {
  .topstrip__link span, .topstrip__hours { display: none; }
  .topstrip__inner > .topstrip__hours { display: inline-flex; }
}

/* Footer social links — icon + label */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
}
.footer-social-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.footer-social-link:hover { color: var(--accent); }

/* ==========================================================================
   Chatbot widget
   ========================================================================== */
.chat-fab {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #051b27;
  display: grid; place-items: center;
  box-shadow: 0 12px 32px -8px rgba(24,182,255,0.55), 0 0 0 1px rgba(24,182,255,0.35);
  z-index: 200;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); background: var(--accent-soft); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab[aria-expanded="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 8px 24px -10px rgba(0,0,0,0.7); }
.chat-fab .chat-fab__close { display: none; }
.chat-fab[aria-expanded="true"] .chat-fab__open  { display: none; }
.chat-fab[aria-expanded="true"] .chat-fab__close { display: block; }
.chat-fab__badge {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--bg);
  animation: pulse-badge 2.4s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.85); }
}

.chat-panel {
  position: fixed;
  right: 1.25rem; bottom: 5.5rem;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(620px, calc(100vh - 7rem));
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(24,182,255,0.06);
  z-index: 199;
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.chat-panel.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.chat-head__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #051b27;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.chat-head__meta { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.chat-head__meta strong { color: var(--text); font-size: 0.95rem; font-weight: 600; line-height: 1.1; }
.chat-head__meta span {
  color: var(--ok); font-size: 0.74rem; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.15rem;
}
.chat-head__meta span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px rgba(76,219,142,0.20);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--bg-2);
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }

.chat-msg {
  max-width: 82%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: msg-in 280ms var(--ease-out);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg--bot {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg--bot a { color: var(--accent); border-bottom: 1px solid currentColor; }
.chat-msg--user {
  background: var(--accent);
  color: #051b27;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}

.chat-replies {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.4rem 0;
  align-self: flex-start;
  max-width: 100%;
}
.chat-reply {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.chat-reply:hover { background: var(--accent); color: #051b27; border-color: var(--accent); transform: translateY(-1px); }

.chat-foot {
  display: flex; gap: 0.45rem;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat-foot a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text);
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.chat-foot a svg { width: 14px; height: 14px; color: var(--accent); }
.chat-foot a:hover { background: var(--accent); color: #051b27; border-color: var(--accent); }
.chat-foot a:hover svg { color: #051b27; }

@media (max-width: 480px) {
  .chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 5rem;
    width: auto;
    max-height: calc(100vh - 6.5rem);
  }
}

/* Chat form (interactive) */
.chat-form {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat-form.is-sent { display: none; }
.chat-form input[name="name"],
.chat-form input[name="phone"],
.chat-form textarea[name="message"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 180ms var(--ease);
}
.chat-form input::placeholder, .chat-form textarea::placeholder { color: var(--mute); }
.chat-form input:focus, .chat-form textarea:focus { outline: 0; border-color: var(--accent); }
.chat-form textarea[name="message"] { resize: vertical; min-height: 40px; max-height: 100px; }

.chat-form__row { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; margin-top: 0.15rem; }
.chat-form__send {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: #051b27;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.chat-form__send:hover { background: var(--accent-soft); transform: translateY(-1px); }
.chat-form__send:disabled { opacity: 0.6; cursor: progress; }
.chat-form__send svg { width: 14px; height: 14px; }

.chat-form__feedback {
  font-size: 0.78rem;
  color: var(--mute);
}
.chat-form__feedback.is-error { color: var(--danger); }

.chat-form__small {
  margin: 0;
  color: var(--mute);
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* === Logo sizing (configurable from /admin/settings) === */
.site-mark img {
  height: var(--logo-h, 64px);
  width: auto;
  display: block;
}
.site-mark::before { display: none; }
.site-mark.has-logo::before { display: none; }
.site-mark:not(.has-logo)::before { display: ''; } /* keep dot for text fallback */
.mobile-nav__top .site-mark img { height: var(--logo-h-mobile, 50px); }
@media (max-width: 720px) {
  .site-mark img { height: var(--logo-h-mobile, 50px); }
}
/* Header keeps fixed height; logo overflows visually when larger */
.site-mark, .site-mark img { flex-shrink: 0; }
.site-mark { line-height: 0; }
.site-header__inner { overflow: visible; }

/* Lang switch flags */
.lang-switch a { padding: 0.4rem 0.55rem; font-size: 1rem; line-height: 1; }
.lang-switch a .flag { display: inline-block; line-height: 1; filter: saturate(1.05); }
.lang-switch a.is-current { background: var(--accent); }
.lang-switch a.is-current .flag { filter: none; }

/* === Footer compact + logo === */
.site-footer { padding-top: clamp(2.25rem, 4vw, 3.25rem); padding-bottom: 1.25rem; }
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); }
.footer-cta { padding: clamp(1.25rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 2rem); margin-bottom: 2.25rem; gap: 1rem; }
.footer-cta__text h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.footer-cta__text p { font-size: 0.9rem; }
.footer-display { display: none; }

.footer-brand { margin: 0 0 1.5rem; display: flex; align-items: center; }
.footer-brand__logo { height: var(--logo-h-footer, 56px); width: auto; display: block; }
.footer-brand__text { font-weight: 700; font-size: 1.6rem; letter-spacing: -0.025em; color: var(--text); }

.footer-grid { padding-block: 1.5rem 1.75rem; gap: 1.75rem; }
.footer-col h4 { margin-bottom: 0.85rem; }
.footer-col li { margin-bottom: 0.45rem; font-size: 0.9rem; }

.offices { padding-block: 1.5rem 1.75rem; gap: 0.75rem; }
.office { padding: 0.95rem 1.1rem; }
.office h5 { margin-bottom: 0.25rem; }
.office strong { font-size: 0.92rem; }
.office span { font-size: 0.85rem; }

.footer-social { margin-top: 1.25rem; gap: 0.4rem; }
.footer-social a { width: 34px; height: 34px; }

.footer-bottom { margin-top: 1.25rem; font-size: 0.7rem; }

/* === Footer layout: logo left, info right === */
.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  padding-block: 2rem 1rem;
  border-block: 1px solid var(--line);
}
.footer-main .footer-brand { margin: 0; padding-right: 1.5rem; }
.footer-main .footer-grid { padding-block: 0; border: 0; }
@media (min-width: 900px) {
  .footer-main {
    grid-template-columns: minmax(220px, 26%) 1fr;
    gap: 3rem;
    align-items: start;
  }
  .footer-main .footer-grid { grid-template-columns: repeat(4, 1fr); }

  /* Same-row alignment without overlap:
     - The logo "slot" reserves a fixed height equal to the logo height (or 1.5rem min).
     - Right columns h4 use the SAME min-height, so address and ul start at the exact same Y.
     - Bumping --logo-h-footer grows the slot AND the h4 row identically — never overlaps the address. */
  .footer-main .footer-brand { gap: 0; }
  .footer-main .footer-brand__slot {
    height: max(var(--logo-h-footer, 56px), 1.5rem);
    display: flex;
    align-items: flex-start;
    overflow: visible;
    line-height: 0;
  }
  .footer-main .footer-brand__slot img {
    height: var(--logo-h-footer, 56px);
    width: auto;
    max-width: none;
    display: block;
  }
  .footer-main .footer-col h4 {
    min-height: max(var(--logo-h-footer, 56px), 1.5rem);
    margin: 0 0 1rem;
  }
  .footer-main .footer-address { margin-top: 1rem; }
}
.footer-main .footer-brand { flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-address { display: flex; flex-direction: column; gap: 0.15rem; font-style: normal; color: var(--mute); font-size: 0.92rem; line-height: 1.55; }
.footer-address strong { color: var(--text); font-weight: 600; margin-bottom: 0.2rem; letter-spacing: -0.01em; }


/* =============================================================================
   Responsive enhancements (2026-05-02)
   Smooth adaptation for: phones (320–480), tablets (481–900), laptops (901–1280),
   desktops (1281+). Mobile-first additions, never overrides desktop look.
   ============================================================================= */

/* Root fluid scaling — keep readable on tiny phones, comfortable on large desktops */
html { font-size: clamp(15px, 1vw + 0.55rem, 17px); }
body { font-size: 1rem; }

/* Container fluid padding for ultra-small viewports */
:root { --pad-x: clamp(1rem, 4vw, 2.5rem); }

/* Prevent horizontal scroll from any rogue wide element */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; height: auto; }
pre, code, table { max-width: 100%; }

/* Long URLs / emails should wrap on phones */
a, p, h1, h2, h3, h4, li, span { word-wrap: break-word; overflow-wrap: anywhere; }
.topstrip__link, .footer-col a { overflow-wrap: break-word; }

/* === Phones (≤ 480px) === */
@media (max-width: 480px) {
  .topstrip { font-size: 0.78rem; }
  .topstrip__inner { gap: 0.6rem; padding-block: 0.5rem; flex-wrap: wrap; justify-content: center; }
  .topstrip__sep, .topstrip__hours { display: none; }

  .site-header__inner { gap: 1rem; height: 60px; }

  .hero { padding-top: clamp(1.5rem, 6vw, 3rem); }
  .hero__panel { display: none; }

  .container { padding-inline: 1rem; }

  .btn, .btn-large { padding: 0.85rem 1.2rem; font-size: 0.95rem; }
  .btn-large { padding: 0.95rem 1.35rem; }

  .footer-cta { flex-direction: column; align-items: stretch; text-align: left; }
  .footer-cta .btn { align-self: flex-start; }

  .footer-bottom { font-size: 0.82rem; text-align: center; }

  .mobile-nav .container { padding: 1.5rem 1rem; }
  .mobile-nav__list a { font-size: 1.4rem; }

  /* Forms */
  input, textarea, select { font-size: 16px; } /* avoids iOS zoom on focus */
}

/* === Tablets portrait (481–768px) === */
@media (min-width: 481px) and (max-width: 768px) {
  .container { padding-inline: 1.5rem; }
  .topstrip__inner { flex-wrap: wrap; gap: 0.75rem; }
}

/* === Mobile + small tablets — universal === */
@media (max-width: 768px) {
  /* Sticky header polite scroll */
  .site-header { position: sticky; top: 0; }

  /* Stack all 2-col rows */
  .row-2 { grid-template-columns: 1fr; gap: 2rem; }

  /* Section title row collapses */
  .sec-title { grid-template-columns: 1fr; gap: 0.75rem; }
  .sec-title__hint { text-align: left; max-width: none; }

  /* Detail pages: tighter gallery */
  .detail__gallery { grid-template-columns: 1fr; }

  /* Forms in contact section: full width */
  form input, form textarea, form select, form button[type=submit] { width: 100%; max-width: 100%; }

  /* Chat widget less intrusive on phones */
  .chat-launcher, .chat-window { right: 12px; }
  .chat-window { width: calc(100vw - 24px); max-width: 380px; }

  /* Footer: when stacked, address sits naturally below logo without min-height tricks */
  .footer-main .footer-brand__slot,
  .footer-main .footer-col h4 { min-height: auto; }
  .footer-main .footer-address { margin-top: 0.75rem; }
  .footer-main .footer-col h4 { margin: 0 0 1rem; }
  .footer-grid { gap: 2rem; }

  /* Buttons row in CTA */
  .cta-dark__actions { flex-direction: column; align-items: stretch; }
  .cta-dark__actions .btn { width: 100%; justify-content: center; }
}

/* === Small tablets / large phones (≥600 portrait) === */
@media (min-width: 600px) and (max-width: 899px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .svc__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__feat { grid-template-columns: repeat(2, 1fr); }
}

/* === Touch targets — accessibility for all touch devices === */
@media (hover: none) and (pointer: coarse) {
  a, button, .btn, .menu-btn { min-height: 44px; }
  .lang-switch a { padding: 0.55rem 0.7rem; }
  /* Disable hover lifts that feel weird on touch */
  .work__card:hover, .svc__card:hover, .clients-grid__item:hover { transform: none; }
}

/* === Reduce motion preference === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
