/* ============================================================
   BriveX Technologies — Main Stylesheet
   File: assets/css/brivex.css

   Typography Stack
   ─────────────────
   Display / Headings : Plus Jakarta Sans  (local)
   Body / UI          : Inter              (local)
   ============================================================ */

/* ── @font-face — Inter ── */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── @font-face — Plus Jakarta Sans ── */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta/PlusJakartaSans-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta/PlusJakartaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta/PlusJakartaSans-ExtraBold.woff2")
    format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Brand palette ── */
  --teal: #2abbb0;
  --teal-soft: #e6f9f7;
  --teal-mid: #9de8e2;
  --teal-dark: #1a8f86;
  --teal-glow: rgba(42, 187, 176, 0.18);
  --ink: #07111a;
  --ink-2: #1c2e38;
  --muted: #607585;
  --faint: #f5fafa;
  --line: rgba(42, 187, 176, 0.13);
  --white: #ffffff;

  /* ── Font families ── */
  --ff-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;

  /* ── Type scale ── */
  --text-2xs: 10px;
  --text-xs: 11.5px;
  --text-sm: 13px;
  --text-base: 14.5px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;

  /* ── Line heights ── */
  --lh-flat: 1;
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;
  --lh-loose: 1.82;

  /* ── Letter spacing ── */
  --ls-tighter: -0.045em;
  --ls-tight: -0.03em;
  --ls-snug: -0.018em;
  --ls-normal: -0.006em;
  --ls-wide: 0.04em;
  --ls-wider: 0.08em;
  --ls-widest: 0.14em;

  /* ── Motion ── */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Radii ── */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--ff-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings:
    "kern" 1,
    "liga" 1,
    "calt" 1;
  overflow-x: hidden;
}
body,
p,
span,
li,
a,
button,
input,
textarea,
select {
  font-family: var(--ff-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-display);
}
/* Suppress default cursor only on true pointer devices */
@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
}

/* ============================================================
   CUSTOM CURSOR
   FIX: Use will-change + transform only (composited layer).
        Remove mix-blend-mode (forces per-frame repaint).
        Use pointer-events:none already in place.
   ============================================================ */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition:
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    opacity 0.2s;
  display: none;
}
.cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    opacity 0.3s;
  opacity: 0.4;
  display: none;
}
.cursor.hover {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}
.cursor-ring.hover {
  width: 54px;
  height: 54px;
  opacity: 0.2;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.brive-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  animation: navDrop 0.7s var(--ease) both;
  /* FIX: promote nav to its own composited layer — avoids repaints during scroll */
  will-change: transform;
}
@keyframes navDrop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  height: 32px;
}
.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* Links */
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: var(--ls-normal);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-tel {
  font-family: var(--ff-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: var(--ls-normal);
  transition: color 0.2s;
}
.nav-tel:hover {
  color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--ls-normal);
  /* FIX: animate only composited properties */
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(42, 187, 176, 0.3);
  display: inline-block;
}
.nav-cta:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 8px 28px rgba(42, 187, 176, 0.42);
  color: var(--white);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-mobile-menu {
  position: fixed;
  inset: 70px 0 0 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-110%);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.nav-mobile-menu.open {
  transform: translateY(0);
}
.nav-mobile-menu a {
  font-family: var(--ff-display);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: var(--ls-snug);
  transition: color 0.2s;
}
.nav-mobile-menu a:hover {
  color: var(--teal);
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.label-line {
  width: 28px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}
.label-text {
  font-family: var(--ff-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
}

/* Buttons */
.btn-fill {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--ls-normal);
  transition:
    background 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s;
  display: inline-block;
}
.btn-fill:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(42, 187, 176, 0.35);
  color: var(--white);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--ls-normal);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(42, 187, 176, 0.32);
  display: inline-block;
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(42, 187, 176, 0.44);
  color: var(--white);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: var(--ls-normal);
  background: none;
  border: none;
  transition:
    color 0.2s,
    gap 0.2s var(--ease);
}
.btn-ghost:hover {
  color: var(--teal);
  gap: 14px;
}

.ghost-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn-ghost:hover .ghost-arrow {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* Scroll reveal
   FIX: add will-change so browser pre-promotes elements before animation fires */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  /* FIX: unset will-change after animation completes to free GPU memory */
  will-change: auto;
}
.reveal-d1 {
  transition-delay: 0.08s;
}
.reveal-d2 {
  transition-delay: 0.16s;
}
.reveal-d3 {
  transition-delay: 0.24s;
}
.reveal-d4 {
  transition-delay: 0.32s;
}
.reveal-d5 {
  transition-delay: 0.4s;
}
.reveal-d6 {
  transition-delay: 0.48s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 80% 20%,
      rgba(42, 187, 176, 0.11) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 10% 90%,
      rgba(42, 187, 176, 0.07) 0%,
      transparent 55%
    );
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 187, 176, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 187, 176, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 30%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 30%,
    transparent 100%
  );
}
.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 88px 56px 68px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-left {
  padding-right: 64px;
}

/* Kicker badge */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--teal-mid);
  background: var(--teal-soft);
  border-radius: 100px;
  padding: 5px 16px 5px 7px;
  margin-bottom: 36px;
  animation: riseIn 0.6s 0.15s var(--ease) both;
}
.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
  flex-shrink: 0;
}
.kicker-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  animation: ripple 2s ease-out infinite;
  opacity: 0;
}
@keyframes ripple {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
.kicker-text {
  font-family: var(--ff-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: var(--ls-wide);
}

/* Hero H1 */
.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 800;
  line-height: var(--lh-flat);
  letter-spacing: var(--ls-tighter);
  color: var(--ink);
  margin-bottom: 6px;
  animation: riseIn 0.7s 0.28s var(--ease) both;
}
.h1-solid {
  display: block;
  max-width: fit-content;
}
.h1-stroke {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.768);
  letter-spacing: -0.03em;
}
.h1-teal {
  display: block;
  color: var(--teal);
  position: relative;
  max-width: fit-content;
}
.h1-teal::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  width: 0;
  animation: swipeIn 0.8s 1.1s var(--ease) forwards;
}
@keyframes swipeIn {
  to {
    width: 100%;
  }
}

.hero-desc {
  font-family: var(--ff-body);
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--muted);
  max-width: 430px;
  margin: 28px 0 44px;
  font-weight: 400;
  letter-spacing: var(--ls-normal);
  animation: riseIn 0.7s 0.42s var(--ease) both;
}
.hero-desc strong {
  color: var(--ink-2);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  animation: riseIn 0.7s 0.54s var(--ease) both;
}

.hero-stats {
  display: flex;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  animation: riseIn 0.7s 0.66s var(--ease) both;
}
.hstat {
  padding-right: 32px;
}
.hstat + .hstat {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.hstat-n {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: var(--ls-snug);
  line-height: 1;
  display: block;
}
.hstat-n em {
  color: var(--teal);
  font-style: normal;
}
.hstat-l {
  font-family: var(--ff-body);
  font-size: var(--text-2xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  display: block;
  margin-top: 7px;
}

/* Hero right — illustration */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: riseIn 0.9s 0.3s var(--ease) both;
}
.illus-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(42, 187, 176, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.illus-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
}
.ring-a {
  width: 340px;
  height: 340px;
  border: 1px dashed rgba(42, 187, 176, 0.22);
  transform: translate(-50%, -50%);
  will-change: transform;
  animation: spin 25s linear infinite;
}
.ring-b {
  width: 470px;
  height: 470px;
  border: 1px solid rgba(42, 187, 176, 0.09);
  transform: translate(-50%, -50%);
  will-change: transform;
  animation: spin 40s linear infinite reverse;
}
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.ring-a::before,
.ring-a::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
}
.ring-a::after {
  top: auto;
  bottom: -3.5px;
  background: var(--teal-mid);
}
.illus-img {
  position: relative;
  z-index: 3;
  width: 88%;
  max-width: 450px;
  filter: drop-shadow(0 20px 52px rgba(42, 187, 176, 0.2));
  will-change: transform;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

/* Floating info chips */
.f-chip {
  position: absolute;
  background: var(--white);
  border: 1px solid rgba(42, 187, 176, 0.2);
  border-radius: var(--radius-md);
  padding: 13px 17px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
  z-index: 5;
  animation: chipIn 0.6s var(--ease) both;
}
.chip-tl {
  top: 55px;
  left: -20px;
  animation-delay: 1s;
}
.chip-tr {
  top: 20px;
  right: -10px;
  animation-delay: 1.2s;
}
.chip-bl {
  bottom: 65px;
  left: -28px;
  animation-delay: 1.4s;
}
@keyframes chipIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.chip-label {
  font-family: var(--ff-body);
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  margin-bottom: 6px;
}
.chip-value {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: var(--ls-snug);
  line-height: 1;
}
.chip-value span {
  color: var(--teal);
}
.chip-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.chip-dot.amber {
  background: #f5a623;
}
.chip-status-text {
  font-family: var(--ff-body);
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.chip-status-text.amber {
  color: #b87314;
}

/* Ticker strip
   FIX: will-change on the animated element; contain: strict on wrapper */
.ticker-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 18px 0;
  overflow: hidden;
  contain: layout style;
}
.ticker-bar::before,
.ticker-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.ticker-bar::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
.ticker-bar::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 24s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: var(--ls-normal);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  transition: color 0.2s;
}
.ticker-item:hover {
  color: var(--ink);
}
.ticker-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: 112px 56px;
}
.about-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.about-h2 {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  margin-bottom: 22px;
}
.about-h2 span {
  color: var(--teal);
}

.about-body {
  font-family: var(--ff-body);
  font-size: var(--text-md);
  line-height: var(--lh-loose);
  color: var(--muted);
  font-weight: 400;
  letter-spacing: var(--ls-normal);
  margin-bottom: 36px;
}
.about-body strong {
  color: var(--ink-2);
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  font-family: var(--ff-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  background: var(--teal-soft);
  border: 1px solid var(--teal-mid);
  border-radius: 100px;
  padding: 7px 18px;
  color: var(--teal-dark);
}

/* About cards */
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.acard {
  background: var(--faint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  /* FIX: only animate composited props */
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.acard:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(42, 187, 176, 0.1);
  /* FIX: removed border-color from transition — triggers layout/paint */
}
.acard:nth-child(even) {
  margin-top: 28px;
}
.acard:nth-child(3) {
  margin-top: -28px;
}
.acard-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-mid);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.acard-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acard-title {
  font-family: var(--ff-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: var(--ls-snug);
  margin-bottom: 8px;
}
.acard-desc {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--muted);
  font-weight: 400;
}

/* ============================================================
   SERVICES SECTION
   FIX 1: Remove stray "s" character after .svc-grid closing brace.
   FIX 2: Add position:relative to .svc-card (required for ::before pseudo-element).
   FIX 3: Hover transitions only on composited properties (transform + opacity).
           Removed background-color from transition — it triggers paint every frame.
   FIX 4: Use opacity for ::before overlay instead of background toggle.
   ============================================================ */
.services {
  padding: 112px 56px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.services-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 60% at 20% 50%,
      rgba(42, 187, 176, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 40% at 85% 20%,
      rgba(42, 187, 176, 0.07) 0%,
      transparent 55%
    );
  pointer-events: none;
}
.services-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 187, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 187, 176, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.services-inner {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.services-h2 {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  max-width: 480px;
}
.services-h2 span {
  color: var(--teal);
}

.services-all-link {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: var(--ls-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    color 0.2s,
    gap 0.2s var(--ease);
  margin-bottom: 8px;
}
.services-all-link:hover {
  color: var(--teal);
  gap: 12px;
}

/* FIX: Removed stray "s" character that broke the grid rule entirely */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

/* FIX: Added position:relative — required for .svc-card::before (position:absolute) to render correctly */
.svc-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  padding: 40px 36px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  /* FIX: transition only transform — background transition was causing paint on every hover frame */
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
  isolation: isolate; /* FIX: creates stacking context so ::before stays inside card */
}
/* FIX: ::before overlay uses opacity transition instead of background toggle — composited, no repaint */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(42, 187, 176, 0.08) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
/* FIX: move card children above ::before overlay */
.svc-card > * {
  position: relative;
  z-index: 1;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(42, 187, 176, 0.12);
}
.svc-card:hover::before {
  opacity: 1;
}

.svc-num {
  font-family: var(--ff-body);
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--teal);
  opacity: 0.55;
  margin-bottom: 20px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
}
.svc-icon {
  width: 48px;
  height: 48px;
  background: rgba(42, 187, 176, 0.1);
  border: 1px solid rgba(42, 187, 176, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.svc-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-name {
  font-family: var(--ff-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  letter-spacing: var(--ls-snug);
  line-height: var(--lh-snug);
  margin-bottom: 12px;
}
.svc-desc {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.44);
  font-weight: 400;
}
.svc-link {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  letter-spacing: var(--ls-normal);
  opacity: 0;
  transform: translateY(5px);
  /* FIX: only animate composited properties */
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.svc-card:hover .svc-link {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio {
  padding: 112px 56px;
}
.portfolio-inner {
  max-width: 1300px;
  margin: 0 auto;
}
.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.portfolio-h2 {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}
.portfolio-h2 span {
  color: var(--teal);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.p-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--faint);
  /* FIX: only transition composited properties */
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}
.p-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 58px rgba(42, 187, 176, 0.13);
}
.p-img-wrap {
  overflow: hidden;
}
.p-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.45s var(--ease);
}
.p-card:hover .p-img {
  transform: scale(1.05);
}
.p-body {
  padding: 22px 24px 24px;
}

.p-tag {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  display: inline-block;
  background: var(--teal-soft);
  border: 1px solid var(--teal-mid);
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 12px;
}
.p-title {
  font-family: var(--ff-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: var(--ls-snug);
  line-height: var(--lh-snug);
  margin-bottom: 8px;
}
.p-desc {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 18px;
}
.p-store-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--ls-normal);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  transition:
    background 0.2s,
    color 0.2s;
}
.store-btn:hover {
  background: var(--teal);
  color: var(--white);
}
.store-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 112px 56px;
  background: var(--faint);
}
.testimonials-inner {
  max-width: 1300px;
  margin: 0 auto;
}
.testimonials-header {
  margin-bottom: 56px;
}

.testimonials-h2 {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}
.testimonials-h2 span {
  color: var(--teal);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.t-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  /* FIX: only transition composited properties */
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.t-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(42, 187, 176, 0.09);
}

.t-quote {
  font-family: var(--ff-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--teal);
  line-height: 0.8;
  margin-bottom: 20px;
  opacity: 0.22;
}
.t-text {
  font-family: var(--ff-body);
  font-size: var(--text-base);
  line-height: var(--lh-loose);
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 28px;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 2px solid var(--teal-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--teal-dark);
  flex-shrink: 0;
}
.t-name {
  font-family: var(--ff-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: var(--ls-snug);
}
.t-role {
  font-family: var(--ff-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: var(--ls-normal);
  margin-top: 2px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 112px 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    rgba(42, 187, 176, 0.09) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: var(--ls-tighter);
  line-height: var(--lh-tight);
  margin-bottom: 20px;
}
.cta-h2 span {
  color: var(--teal);
}

.cta-sub {
  font-family: var(--ff-body);
  font-size: var(--text-md);
  color: var(--muted);
  line-height: var(--lh-relaxed);
  font-weight: 400;
  letter-spacing: var(--ls-normal);
  margin-bottom: 44px;
}
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  padding: 72px 56px 36px;
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 60% at 80% 50%,
    rgba(42, 187, 176, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 2;
}
.footer-logo {
  display: flex;
  align-items: center;
  height: 28px;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.footer-tagline {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  max-width: 260px;
  margin-bottom: 28px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.social-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(42, 187, 176, 0.08);
}

.footer-col-title {
  font-family: var(--ff-body);
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--white);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  letter-spacing: var(--ls-normal);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--teal);
}

.footer-contact-line {
  font-family: var(--ff-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  margin-bottom: 10px;
}
.footer-contact-line a {
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.2s;
}
.footer-contact-line a:hover {
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  position: relative;
  z-index: 2;
}
.footer-copy {
  font-family: var(--ff-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
  letter-spacing: var(--ls-normal);
}
.footer-legal {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-legal a {
  font-family: var(--ff-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: var(--ls-normal);
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--teal);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--teal);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(42, 187, 176, 0.35);
  will-change: transform, opacity;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  box-shadow: 0 8px 28px rgba(42, 187, 176, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .brive-nav {
    padding: 0 28px;
  }
  .nav-links,
  .nav-actions .nav-tel {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 28px 48px;
  }
  .hero-left {
    padding-right: 0;
  }
  .hero-right {
    margin-top: 56px;
  }
  .chip-tr {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 0 28px;
  }
  .about {
    padding: 80px 28px;
  }

  .services {
    padding: 80px 28px;
  }
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio {
    padding: 80px 28px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .testimonials {
    padding: 80px 28px;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 80px 28px;
  }
  .footer {
    padding: 60px 28px 32px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding: 48px 20px 40px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
  }
  .hstat {
    width: 50%;
    padding: 0 0 20px;
  }
  .hstat + .hstat {
    border-left: none;
    padding-left: 0;
  }
  .hstat:nth-child(3) {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .chip-tl,
  .chip-bl {
    display: none;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================================
   SHARED KEYFRAMES
   ============================================================ */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Footer offices ── */
.footer-offices {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-office {
}

.footer-office-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  flex-wrap: nowrap;
}

.footer-office-flag {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.footer-office-country {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.footer-office-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}

.footer-office-badge {
  font-family: var(--ff-body);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(42, 187, 176, 0.1);
  border: 1px solid rgba(42, 187, 176, 0.22);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.footer-office-badge--muted {
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-office-addr {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.65;
  padding-left: 20px;
  margin: 0;
}

.footer-office-addr--muted {
  color: rgba(255, 255, 255, 0.2);
  font-style: italic;
}
