/* ============ TOKENS ============ */
:root {
  --navy-950: #060c18;
  --navy-900: #0a1628;
  --navy-800: #10213e;
  --navy-700: #16315c;
  --blue-600: #2353eb;
  --blue-500: #3866f0;
  --blue-400: #6fa0ff;
  --cyan-400: #27e0f0;
  --paper: #f5f7fb;
  --paper-2: #eef1f8;
  --white: #ffffff;
  --ink-900: #0b1220;
  --ink-600: #384156;
  --ink-500: #5b6577;
  --line: #e1e6f0;
  --line-soft: rgba(10, 22, 40, 0.08);
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.85, 0.32, 1);
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.drawer-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
section { position: relative; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.on-dark p, .on-dark span { color: var(--white); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 500;
  background: var(--blue-600);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 16px; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.on-dark .eyebrow { color: var(--cyan-400); }

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--ink-500); }
.on-dark .muted { color: #aab6cf; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(35, 83, 235, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(35, 83, 235, 0.65);
}

.btn-ghost {
  border-color: var(--line-soft);
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover { border-color: var(--blue-600); background: #fff; }
.on-dark .btn-ghost { border-color: var(--line-dark); color: #fff; background: rgba(255, 255, 255, 0.04); }
.on-dark .btn-ghost:hover { border-color: var(--cyan-400); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  overflow: visible;
  transition: padding 0.3s var(--ease), background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(245, 247, 251, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  line-height: 0;
  text-decoration: none;
}

.brand img,
.site-logo {
  display: block;
  height: clamp(38px, 4.6vw, 48px);
  width: auto;
  max-width: min(220px, 100%);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.nav.scrolled .brand img,
.nav.scrolled .site-logo {
  height: clamp(36px, 4.2vw, 44px);
  max-width: min(204px, 100%);
}
.navlinks { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--ink-600); }
.navlinks a { position: relative; padding: 4px 0; }
.navlinks a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0%;
  background: var(--blue-600);
  transition: width 0.25s var(--ease);
}

.navlinks a:hover { color: var(--ink-900); }
.navlinks a:hover::after { width: 100%; }
.navlinks a.nav-current {
  color: var(--ink-900);
  font-weight: 600;
}

.navlinks a.nav-current::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; }
.navlinks-mobile-toggle { display: none; flex: none; background: none; border: none; cursor: pointer; padding: 8px; margin-right: -8px; }
.navlinks-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-900); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

@media (max-width: 900px) {
  :root { --nav-h: 56px; }

  .wrap { padding-inline: clamp(16px, 4.2vw, 20px); }

  .nav { padding: 8px 0; }
  .nav.scrolled { padding: 8px 0; }
  .nav .wrap { gap: 12px; padding-inline: clamp(16px, 4.2vw, 20px); }
  .navlinks { display: none; }
  .nav-cta { display: none; }
  .navlinks-mobile-toggle { display: block; margin-right: 0; }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 44px);
  }

  .brand img,
  .site-logo {
    height: 32px;
    width: auto;
    max-width: 100%;
  }

  .nav.scrolled .brand img,
  .nav.scrolled .site-logo {
    height: 30px;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .brand img,
  .site-logo {
    height: 28px;
  }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-900);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 36px;
  gap: 6px;
  visibility: hidden;
}

.mobile-drawer.open { transform: translateY(0); visibility: visible; }
.mobile-drawer a { font-family: 'Space Grotesk'; font-size: 30px; color: #fff; padding: 12px 0; font-weight: 600; }
.mobile-drawer .btn { margin-top: 18px; }
.mobile-drawer .btn + .btn { margin-top: 12px; }
.mobile-drawer .btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.drawer-close { position: absolute; top: 22px; right: 28px; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 12px) 0 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 18%, rgba(35, 83, 235, 0.09), transparent 58%),
    radial-gradient(ellipse 45% 40% at 92% 88%, rgba(39, 224, 240, 0.06), transparent 55%),
    linear-gradient(180deg, #f8faff 0%, var(--paper) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(35, 83, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 83, 235, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 72%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 50vw);
  grid-template-rows: auto auto;
  grid-template-areas:
    "copy media"
    "stats media";
  align-items: stretch;
  min-height: auto;
}

.hero-copy-panel {
  grid-area: copy;
  display: flex;
  align-items: center;
  padding: 24px 0;
}

.hero-copy { padding: 0 28px 0 0; position: relative; z-index: 2; width: 100%; max-width: 580px; }
.hero-copy .eyebrow { margin-bottom: 12px; }
.hero-copy h1 { font-size: clamp(34px, 4.8vw, 56px); font-weight: 700; line-height: 1.04; margin-bottom: 16px; }
.hero-copy h1 .line2 { color: var(--blue-600); }
.hero-copy p.lede { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.58; color: var(--ink-600); margin: 0 0 20px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }

.hero-stats {
  grid-area: stats;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: none;
  margin-top: -6px;
  padding: 22px 20px 28px;
  background: linear-gradient(135deg, #f4f7fd 0%, #eef3fb 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px -18px rgba(10, 22, 40, 0.18);
}

.hero-stats .stat {
  position: relative;
  text-align: center;
  padding: 4px 10px;
}

.hero-stats .stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(10, 22, 40, 0.1);
}

.hero-stats .stat b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 36px);
  color: var(--blue-600);
  display: block;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-stats .stat span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-600);
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.hero-solution {
  grid-area: media;
  position: relative;
  align-self: stretch;
  background: var(--navy-900);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  min-height: clamp(400px, 62vh, 560px);
  overflow: hidden;
}

.hero-solution::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 20%, rgba(39, 224, 240, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.08) 0%, rgba(10, 22, 40, 0.42) 100%);
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  inset: -2% -4% -2% -8%;
  z-index: 0;
}

.hero-visual img,
.hero-visual video {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-visual img {
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.06);
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 22, 40, 0.62) 0%, rgba(10, 22, 40, 0.18) 38%, rgba(35, 83, 235, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 22, 40, 0.38), transparent 42%);
}

.hero-visual.hero-visual--video {
  inset: -6% -4% -6% -14%;
}

.hero-visual--video video {
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: var(--navy-900);
  transform: scale(1.06);
}

.hero-solution--video {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(35, 83, 235, 0.14), transparent 58%),
    linear-gradient(180deg, #081427 0%, #0a1628 48%, #081427 100%);
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-solution--video::before {
  background:
    radial-gradient(circle at 50% 35%, rgba(39, 224, 240, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.04) 0%, rgba(10, 22, 40, 0.18) 100%);
}

@media (min-width: 981px) {
  .hero-solution--video .hero-visual.hero-visual--video {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    align-self: center;
  }

  .hero-solution--video .hero-visual--video video {
    object-fit: contain;
    object-position: center;
    transform: none;
    background: transparent;
  }

  .hero-solution--video .hero-visual-overlay--video {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.06) 0%, rgba(10, 22, 40, 0.14) 100%);
  }
}

.hero-visual-overlay--video {
  background:
    radial-gradient(circle at 70% 24%, rgba(39, 224, 240, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.08) 0%, rgba(10, 22, 40, 0.22) 100%);
}

.seam-label {
  position: absolute;
  top: 10%;
  left: 11%;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan-400);
  font-size: 11px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  opacity: 0.9;
  z-index: 2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.seam-label.problem {
  left: auto;
  right: auto;
  top: auto;
  bottom: 7%;
  left: 12px;
  writing-mode: horizontal-tb;
  color: #e8eef9;
  opacity: 0.82;
  z-index: 2;
}

@media (max-width: 980px) {
  .hero {
    padding: calc(var(--nav-h) + 8px) 0 8px;
    background:
      radial-gradient(ellipse 90% 40% at 50% 0%, rgba(35, 83, 235, 0.08), transparent 70%),
      var(--paper);
  }

  .hero::before { display: none; }

  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-inline: clamp(16px, 4.2vw, 20px);
  }

  .hero-copy-panel {
    order: 1;
    padding: 8px 0 0;
  }

  .hero-copy-panel.wrap,
  .hero-stats.wrap {
    padding-inline: 0;
    max-width: none;
  }

  .hero-solution {
    order: 2;
    clip-path: none;
    border-radius: 16px;
    min-height: 0;
    height: clamp(168px, 50vw, 220px);
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: 0 12px 28px -18px rgba(10, 22, 40, 0.35);
  }

  .hero-solution--video {
    display: block;
    background: var(--navy-900);
    clip-path: none;
  }

  .hero-solution--video::before {
    background:
      radial-gradient(circle at 72% 20%, rgba(39, 224, 240, 0.18), transparent 42%),
      linear-gradient(180deg, rgba(10, 22, 40, 0.08) 0%, rgba(10, 22, 40, 0.42) 100%);
  }

  .hero-stats {
    order: 3;
    margin-top: 0;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
    padding: 18px 16px 8px;
  }

  .hero-copy { padding: 0; max-width: none; }
  .hero-copy h1 { font-size: clamp(30px, 8vw, 42px); margin-bottom: 12px; }
  .hero-copy p.lede { max-width: none; margin-bottom: 16px; font-size: 15px; line-height: 1.55; }
  .hero-actions { margin-bottom: 0; gap: 10px; }
  .hero-actions .btn { flex: 1 1 calc(50% - 5px); min-width: 0; justify-content: center; }

  .hero-stats .stat:not(:last-child)::after { display: none; }

  .hero-stats .stat:nth-child(odd):not(:last-child)::after {
    display: block;
    right: -6px;
    top: 10%;
    height: 80%;
  }

  .hero-stats .stat b { font-size: clamp(26px, 7vw, 32px); }

  .hero-visual { inset: 0; }
  .hero-visual.hero-visual--video { inset: 0; }
  .hero-visual img { transform: none; }
  .hero-visual--video video {
    padding: 0;
    object-fit: cover;
    object-position: center;
    transform: none;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: clamp(28px, 9vw, 36px); }
  .hero-actions .btn { padding: 11px 14px; font-size: 13.5px; }
  .hero-stats { padding: 16px 12px 8px; gap: 14px 8px; }
  .hero-stats .stat span { font-size: 12.5px; }
  .hero-solution { height: clamp(156px, 52vw, 196px); }
}

@media (max-height: 820px) and (min-width: 981px) {
  .hero-copy-panel { padding: 20px 0 24px; }
  .hero-copy .eyebrow { margin-bottom: 8px; }
  .hero-copy h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
  .hero-copy p.lede { margin: 0 0 14px; font-size: 15px; }
  .hero-actions { margin-bottom: 0; }
  .hero-stats { padding: 16px 14px 20px; margin-top: -4px; }
  .hero-stats .stat b { font-size: clamp(24px, 2.8vw, 30px); }
  .hero-solution { min-height: clamp(360px, 58vh, 480px); }
}

/* ============ SECTION SCAFFOLD ============ */
.section { padding: 108px 0; }
.section.tight { padding: 84px 0; }
.on-dark { background: var(--navy-900); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; margin-top: 16px; }
.section-head p { font-size: 16.5px; color: var(--ink-500); margin-top: 14px; line-height: 1.65; }
.on-dark .section-head p { color: #aab6cf; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ============ TRUST STRIP ============ */
.trust { background: var(--navy-900); padding: 18px 0; }
.trust .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.trust-item { display: flex; align-items: baseline; gap: 10px; color: #fff; }
.trust-item b { font-family: 'JetBrains Mono', monospace; font-size: 20px; color: var(--cyan-400); }
.trust-item span { font-size: 13px; color: #aab6cf; }

/* ============ ABOUT ============ */
.about-intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.about-intro h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-top: 16px;
  line-height: 1.15;
}

.about-intro p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-600);
  margin: 18px 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 48px 56px;
  align-items: start;
}

.about-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-600);
  margin: 0 0 20px;
}

.director-figure {
  margin: 0;
  position: sticky;
  top: 92px;
}

.director-photo-full {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px -24px rgba(10, 22, 40, 0.28);
  object-fit: contain;
  background: var(--paper-2);
}

.director-caption {
  margin-top: 14px;
  text-align: center;
}

.director-caption strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
}

.director-caption span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--ink-500);
}

.director-caption a {
  color: var(--blue-600);
  text-decoration: none;
}

.director-caption a:hover {
  text-decoration: underline;
}

.mv-cards { display: grid; gap: 16px; margin-top: 0; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.mv-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.mv-card p { font-size: 14.5px; color: var(--ink-500); margin: 0; line-height: 1.6; }

.director-quote-card {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.director-quote {
  color: #cfd8ec;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.director-quote-name {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.director-quote-role {
  margin: 2px 0 0;
  color: #8c98b5;
  font-size: 13px;
}

.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--paper-2);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.benefit svg { width: 18px; height: 18px; flex: none; color: var(--blue-600); margin-top: 1px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; max-width: 420px; margin-inline: auto; }
  .director-figure { position: static; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .benefit-grid { grid-template-columns: 1fr; }
}


/* ============ SERVICES ============ */
.services-section { padding: 56px 0; }

.services-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 28px 36px;
  align-items: start;
}

.services-intro {
  margin-bottom: 0;
  max-width: none;
  position: sticky;
  top: 84px;
}

.services-intro h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-top: 12px;
  line-height: 1.12;
}

.services-intro p {
  font-size: 14.5px;
  margin-top: 10px;
  line-height: 1.55;
}

.services-hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
}

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.service-trigger {
  display: block;
  width: 100%;
  padding: 18px 16px 14px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.service-trigger:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: -2px;
  border-radius: 14px;
}

.service-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 83, 235, 0.08), transparent 70%);
  transition: opacity 0.35s;
  opacity: 0;
}

.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(10, 22, 40, 0.2); border-color: #cfdcfb; }
.service-card.open {
  border-color: #b8c8f5;
  box-shadow: 0 16px 32px -20px rgba(35, 83, 235, 0.18);
  transform: translateY(-2px);
}

.service-card:hover::after,
.service-card.open::after { opacity: 1; }
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-600) 0%, #3d6ef5 55%, var(--cyan-400) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 8px 18px -10px rgba(35, 83, 235, 0.5);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.service-icon svg {
  width: 21px;
  height: 21px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 24px -10px rgba(35, 83, 235, 0.6);
}
.service-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; line-height: 1.25; }
.service-card p { font-size: 13px; color: var(--ink-500); line-height: 1.5; margin: 0; }
.service-tag { position: absolute; top: 16px; right: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #c7d2e6; z-index: 2; pointer-events: none; }

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
}

.service-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.service-card.open .service-more svg { transform: rotate(180deg); }
.service-card.open .service-more-label::after { content: ' (hide)'; font-weight: 500; color: var(--ink-500); }

.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.service-list {
  margin: 0;
  padding: 0 16px 14px 16px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-list li {
  position: relative;
  padding: 7px 0 7px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-600);
  border-bottom: 1px solid rgba(225, 230, 240, 0.7);
}

.service-list li:last-child { border-bottom: none; padding-bottom: 2px; }

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-600);
}

@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-intro {
    position: static;
    max-width: 560px;
  }
}

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 560px) {
  .services-section { padding: 44px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-trigger { padding: 16px 14px 12px; }
}

/* ============ SUBPAGE (portfolio etc.) ============ */
.page-hero {
  padding: calc(var(--nav-h) + 28px) 0 24px;
  background:
    radial-gradient(ellipse 70% 55% at 8% 18%, rgba(35, 83, 235, 0.08), transparent 58%),
    linear-gradient(180deg, #f8faff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.page-back:hover { text-decoration: underline; }

.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-top: 12px;
  line-height: 1.05;
}

.page-hero h1 .line2 { color: var(--blue-600); }

.portfolio-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.portfolio-about {
  padding: 48px 0 40px;
}

.portfolio-about .director-figure,
.portfolio-page .portfolio-feature-media {
  position: static;
}

.portfolio-page .portfolio-section {
  padding: 48px 0 40px;
}

.portfolio-page .portfolio-about .about-intro {
  margin-bottom: 32px;
}

.portfolio-contact-only {
  max-width: 640px;
}

.portfolio-contact {
  padding: 48px 0 56px;
  background: var(--navy-900);
  color: #fff;
}

.portfolio-contact-head {
  max-width: 520px;
  margin-bottom: 28px;
}

.portfolio-contact-head .eyebrow { color: var(--cyan-400); }

.portfolio-contact-head h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  margin-top: 12px;
  color: #fff;
  line-height: 1.1;
}

.portfolio-contact-head p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #aab6cf;
}

.portfolio-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 20px;
  align-items: stretch;
}

.portfolio-contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  align-content: stretch;
}

.portfolio-contact-map {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.contact-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.contact-tile:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(39, 224, 240, 0.35);
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.45);
}

.contact-tile--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(35, 83, 235, 0.35) 0%, rgba(39, 224, 240, 0.12) 100%);
  border-color: rgba(111, 160, 255, 0.35);
  padding: 20px 18px;
}

.contact-tile--email .contact-tile-body strong {
  font-size: clamp(13px, 1.8vw, 15px);
}

.contact-tile--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.28);
}

.contact-tile--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.18);
}

.contact-tile--wide {
  grid-column: 1 / -1;
  height: 100%;
  min-height: 88px;
  align-self: stretch;
}

.contact-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-tile--featured .contact-tile-icon {
  background: rgba(255, 255, 255, 0.16);
}

.contact-tile--whatsapp .contact-tile-icon {
  background: rgba(37, 211, 102, 0.22);
}

.contact-tile-icon svg {
  width: 22px;
  height: 22px;
  color: var(--cyan-400);
}

.contact-tile--whatsapp .contact-tile-icon svg {
  color: #4ade80;
}

.contact-tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-tile-body b {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c98b5;
  font-weight: 600;
}

.contact-tile-body strong {
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
}

.contact-tile--featured .contact-tile-body strong {
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.01em;
}

.contact-tile-body span {
  font-size: 12.5px;
  line-height: 1.45;
  color: #8c98b5;
  margin-top: 2px;
}

.contact-trust-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}

.contact-trust-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-trust-item b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan-400);
  line-height: 1.1;
}

.contact-trust-item span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #8c98b5;
}

.portfolio-contact-map .map-wrap--tall {
  flex: 1 1 auto;
  min-height: 240px;
  height: 100%;
}

.portfolio-contact-map .map-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  height: 100%;
  min-height: 100%;
}

.portfolio-contact-map .map-actions {
  flex: none;
}

@media (max-width: 900px) {
  .portfolio-contact-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-contact-cards {
    height: auto;
    grid-template-rows: auto;
  }

  .contact-tile--wide {
    height: auto;
    min-height: 0;
  }

  .portfolio-contact-map .map-wrap--tall {
    min-height: 280px;
    height: auto;
    flex: none;
  }
}

@media (max-width: 520px) {
  .portfolio-contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-tile--featured,
  .contact-tile--wide {
    grid-column: auto;
  }
}

.page-hero p {
  max-width: 620px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-600);
}

.subpage .portfolio-section {
  padding-top: 40px;
}

.portfolio-cta {
  background: var(--paper-2);
  text-align: center;
}

.portfolio-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.portfolio-cta-inner h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 10px;
}

.portfolio-cta-inner p {
  color: var(--ink-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ============ PORTFOLIO ============ */
.portfolio-section {
  padding: 56px 0;
  background: var(--paper);
}

.portfolio-intro {
  margin-bottom: 32px;
}

.portfolio-feature {
  margin-bottom: 40px;
}

.portfolio-feature.about-grid {
  align-items: stretch;
}

.portfolio-feature .portfolio-feature-media {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-feature-media {
  position: static;
}

.portfolio-visual {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #dfe8fb;
}

.portfolio-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.portfolio-visual--featured {
  min-height: 320px;
}

.portfolio-feature .portfolio-visual--featured {
  flex: 1 1 auto;
  min-height: 320px;
}

.portfolio-feature .portfolio-visual--featured img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

.portfolio-visual--featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.45) 0%, rgba(35, 83, 235, 0.2) 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .portfolio-feature.about-grid {
    align-items: start;
  }

  .portfolio-feature .portfolio-feature-media {
    height: auto;
  }

  .portfolio-feature .portfolio-visual--featured {
    flex: none;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .portfolio-feature .portfolio-visual--featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
  }
}

.portfolio-visual-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 22, 40, 0.72);
  padding: 6px 10px;
  border-radius: 8px;
}

.portfolio-tags {
  margin-top: 16px;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 28px 36px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.portfolio-grid-intro {
  margin-bottom: 0;
  max-width: none;
  position: sticky;
  top: 84px;
}

.portfolio-grid-intro h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-top: 12px;
  line-height: 1.12;
}

.portfolio-grid-intro p {
  font-size: 14px;
  margin-top: 10px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

.portfolio-card .service-trigger {
  padding-top: 14px;
}

.portfolio-thumb {
  position: relative;
  height: 108px;
  overflow: hidden;
  background: #e8eefb;
  border-bottom: 1px solid var(--line);
}

.portfolio-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portfolio-meta {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 6px;
}

.portfolio-card h3 {
  font-size: 15px;
}

.portfolio-detail-list li {
  padding-left: 0;
}

.portfolio-detail-list li::before { display: none; }

.portfolio-detail-list b {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 3px;
}

@media (max-width: 1024px) {
  .portfolio-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-grid-intro {
    position: static;
    max-width: 560px;
  }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .portfolio-section { padding: 44px 0; }
  .portfolio-feature { margin-bottom: 28px; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ============ INDUSTRIES ============ */
.industries-section { padding: 56px 0; }

.industries-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 28px 36px;
  align-items: start;
}

.industries-intro {
  margin-bottom: 0;
  max-width: none;
  position: sticky;
  top: 84px;
}

.industries-intro h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-top: 12px;
  line-height: 1.12;
}

.industries-intro p {
  font-size: 14.5px;
  margin-top: 10px;
  line-height: 1.55;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.industry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: default;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.industry-card:hover,
.industry-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, #fff);
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--accent) 30%, rgba(10, 22, 40, 0.15));
  outline: none;
}

.industry-card:hover::before,
.industry-card:focus-visible::before { opacity: 1; }

.industry-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #27e0f0));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform 0.35s var(--ease);
}

.industry-icon::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 55%);
}

.industry-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.industry-card:hover .industry-icon,
.industry-card:focus-visible .industry-icon {
  transform: scale(1.08) rotate(-2deg);
}

.industry-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
  position: relative;
  z-index: 1;
  line-height: 1.25;
}

.industry-hint {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-500);
  position: relative;
  z-index: 1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease), margin 0.35s var(--ease);
}

.industry-card:hover .industry-hint,
.industry-card:focus-visible .industry-hint {
  max-height: 40px;
  opacity: 1;
  margin-top: -4px;
}

@media (max-width: 1024px) {
  .industries-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .industries-intro {
    position: static;
    max-width: 560px;
  }

  .industry-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 780px) {
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .industries-section { padding: 44px 0; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .industry-card { padding: 12px 10px 10px; }
}

@media (max-width: 400px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ============ PROCESS ============ */
.process-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.process-rail::before { content: ''; position: absolute; top: 23px; left: 0; right: 0; height: 1px; background: var(--line-dark); }
.process-step { padding: 0 14px 0 0; position: relative; }
.process-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan-400);
  font-size: 13px;
  font-weight: 600;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.process-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: #aab6cf; line-height: 1.55; margin: 0; }

@media (max-width: 980px) {
  .process-rail { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .process-rail::before { display: none; }
}

@media (max-width: 560px) { .process-rail { grid-template-columns: 1fr; } }

/* ============ PORTFOLIO ============ */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case-top h3 { font-size: 19px; font-weight: 700; }
.case-industry { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--blue-600); background: #eaf0ff; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.case-flow { display: flex; flex-direction: column; gap: 10px; }
.case-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; font-size: 14px; }
.case-row b { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.case-row p { margin: 0; color: var(--ink-600); line-height: 1.55; }
.case-row.result p { color: var(--ink-900); font-weight: 600; }

@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

/* ============ TESTIMONIALS ============ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card { background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: 18px; padding: 30px; }
.stars { color: var(--cyan-400); font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testi-card p.quote { font-size: 17px; line-height: 1.6; color: #fff; margin: 0 0 22px; font-family: 'Space Grotesk'; font-weight: 500; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono';
  font-size: 13px;
  color: var(--cyan-400);
  font-weight: 600;
}

.testi-who b { display: block; font-size: 14.5px; color: #fff; }
.testi-who span { font-size: 12.5px; color: #aab6cf; }

@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ============ TRUSTED CLIENTS ============ */
.clients-section .section-head { margin-bottom: 36px; }

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.client-card:hover,
.client-card:focus-visible {
  border-color: rgba(35, 83, 235, 0.28);
  box-shadow: 0 10px 28px rgba(10, 22, 40, 0.08);
  transform: translateY(-2px);
}

.client-card img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .client-grid { grid-template-columns: 1fr; max-width: 360px; }
  .client-card { min-height: 92px; }
}

/* ============ TECH PARTNERS ============ */
.partners-section .section-head { margin-bottom: 40px; }

.partner-marquee {
  overflow: hidden;
  margin-bottom: 32px;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partner-marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: partnerMarquee 32s linear infinite;
}

.partner-marquee-track img {
  opacity: 0.45;
  filter: grayscale(100%);
  flex: none;
}

@keyframes partnerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.partner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  cursor: default;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.partner-card:hover,
.partner-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 45%, #fff);
  box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--brand) 35%, rgba(10, 22, 40, 0.2));
  outline: none;
}

.partner-card:hover::before,
.partner-card:focus-visible::before { opacity: 1; }

.partner-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease), background 0.35s;
}

.partner-card:hover .partner-logo,
.partner-card:focus-visible .partner-logo {
  transform: scale(1.08);
  background: color-mix(in srgb, var(--brand) 8%, #fff);
}

.partner-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.72);
  transition: filter 0.35s var(--ease), transform 0.35s var(--ease);
}

.partner-card:hover .partner-logo img,
.partner-card:focus-visible .partner-logo img {
  filter: none;
  transform: scale(1.05);
}

.partner-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.partner-card:hover .partner-name,
.partner-card:focus-visible .partner-name {
  color: var(--ink-900);
}

@media (max-width: 980px) {
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 700px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track { animation: none; }
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
}

.faq-question svg { width: 18px; height: 18px; flex: none; color: var(--blue-600); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; line-height: 1.65; color: var(--ink-500); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
}

.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.contact-form > p { font-size: 14.5px; color: var(--ink-500); margin: 0 0 24px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-600); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink-900);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(35, 83, 235, 0.12);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 500; min-height: 20px; }
.form-status.success { color: #0d7a4e; }
.form-status.error { color: #c0392b; }

.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-card-icon svg { width: 20px; height: 20px; color: var(--cyan-400); }
.contact-card b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-card a, .contact-card span { font-size: 14.5px; color: var(--ink-500); }
.contact-card a:hover { color: var(--blue-600); }

.map-block { display: flex; flex-direction: column; gap: 12px; }

.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 280px;
  background: var(--paper-2);
  box-shadow: 0 10px 24px -16px rgba(10, 22, 40, 0.2);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.map-link {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-600);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.map-link:hover { border-color: var(--blue-600); color: var(--blue-600); }

.map-link-primary {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

.map-link-primary:hover {
  background: #1d47d4;
  border-color: #1d47d4;
  color: #fff;
}

.contact-card a[href*="google.com/maps"] { line-height: 1.55; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ PORTFOLIO QR ============ */
.portfolio-qr-section {
  background: var(--paper-2);
}

.portfolio-qr-panel {
  display: grid;
  grid-template-columns: 1fr min(320px, 38%);
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 52px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.portfolio-qr-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-top: 14px;
  line-height: 1.15;
}

.portfolio-qr-copy > p {
  font-size: 16px;
  color: var(--ink-500);
  margin-top: 14px;
  line-height: 1.65;
  max-width: 52ch;
}

.portfolio-qr-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.portfolio-qr-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.5;
}

.portfolio-qr-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(35, 83, 235, 0.12);
}

.portfolio-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.portfolio-qr-visual {
  margin: 0;
  text-align: center;
  justify-self: center;
  width: 100%;
  max-width: 280px;
}

.portfolio-qr-visual img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.portfolio-qr-url {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.portfolio-qr-url a {
  color: var(--blue-500);
  text-decoration: none;
}

.portfolio-qr-url a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .portfolio-qr-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .portfolio-qr-copy > p {
    max-width: none;
  }

  .portfolio-qr-points {
    text-align: left;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-qr-actions {
    justify-content: center;
  }

  .portfolio-qr-visual {
    max-width: 240px;
  }
}

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800) 60%, #0d2a55);
  border-radius: 28px;
  padding: 64px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 224, 240, 0.18), transparent 70%);
}

.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); max-width: 520px; position: relative; z-index: 2; color: #fff; }
.cta-band .btn-ghost { border-color: var(--line-dark); color: #fff; background: rgba(255, 255, 255, 0.06); }
.cta-band .btn-ghost:hover { border-color: var(--cyan-400); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }

@media (max-width: 820px) {
  .cta-band { flex-direction: column; align-items: flex-start; padding: 44px 30px; }
}

/* ============ FOOTER ============ */
footer { background: var(--navy-950); padding: 70px 0 28px; color: #aab6cf; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.foot-brand .foot-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  line-height: 0;
}

.foot-brand .site-logo--footer {
  display: block;
  width: min(230px, 100%);
  height: auto;
  max-height: 56px;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  opacity: 1;
  object-fit: contain;
}
.foot-brand p { font-size: 14px; line-height: 1.6; max-width: 300px; color: #8c98b5; }
.foot-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 600; }
.foot-col a, .foot-col p { display: block; font-size: 14px; color: #aab6cf; margin-bottom: 11px; line-height: 1.5; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: 13px; color: #6f7b96; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.footer-slim {
  background: var(--navy-950);
  padding: 22px 0;
  color: #8c98b5;
  border-top: 1px solid var(--line-dark);
}

.footer-slim-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer-slim-copy {
  font-size: 13px;
  line-height: 1.5;
}

.footer-slim-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-slim-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #cfd8ec;
  text-decoration: none;
}

.footer-slim-nav a:hover,
.footer-slim-nav a:focus-visible {
  color: #fff;
}

@media (max-width: 560px) {
  .footer-slim-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.portfolio-page footer.footer-slim {
  padding-bottom: 22px;
}

/* ============ FLOATING UI ============ */
.scroll-seam {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 28px -4px rgba(37, 211, 102, 0.65); }
.whatsapp-float svg { width: 28px; height: 28px; }

.back-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease);
  box-shadow: 0 6px 18px -4px rgba(10, 22, 40, 0.4);
}

.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top svg { width: 18px; height: 18px; }

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 140;
  background: var(--navy-900);
  border-top: 1px solid var(--line-dark);
  padding: 10px 16px;
  gap: 10px;
}

.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.mobile-bar a.call { background: var(--blue-600); }
.mobile-bar a.wa { background: #25d366; }

@media (max-width: 900px) {
  .mobile-bar { display: flex; }
  .whatsapp-float { bottom: 80px; }
  .back-top { bottom: 80px; }
  footer { padding-bottom: 80px; }

  .portfolio-page .whatsapp-float,
  .portfolio-page .back-top {
    bottom: 24px;
  }

  .portfolio-page footer.footer-slim {
    padding-bottom: 22px;
  }
}

/* ============ ANIMATIONS ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
