/* =============================================
   CSS Variables
   ============================================= */
:root {
  --orange: #f39200;
  --orange-deep: #d97a00;
  --orange-soft: #ffb84d;

  /* Light / paper */
  --paper: #f7f5f0;
  --paper-2: #efebe1;
  --paper-3: #e6e1d3;
  --ink: #0e0e10;
  --ink-2: #1a1a1c;
  --ink-3: #2a2a2e;

  /* Semantic — light mode defaults */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: var(--paper-3);
  --fg: var(--ink);
  --fg-2: #3a3a3e;
  --fg-dim: #7a776e;
  --border: rgba(14, 14, 16, 0.1);
  --border-strong: rgba(14, 14, 16, 0.22);

  /* Fonts */
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Type scale — fluid, min → max */
  --text-xs: clamp(11px, 1vw, 12px); /* labels, tags, captions */
  --text-sm: clamp(13px, 1.1vw, 14px); /* secondary text, nav links */
  --text-base: clamp(15px, 1.2vw, 16px); /* body copy */
  --text-md: clamp(16px, 1.4vw, 18px); /* lead paragraph */
  --text-lg: clamp(18px, 1.8vw, 22px); /* card titles */
  --text-xl: clamp(22px, 2.5vw, 28px); /* subheadings */
  --text-2xl: clamp(28px, 3.5vw, 40px); /* section titles */
  --text-3xl: clamp(36px, 5vw, 56px); /* page titles */
  --text-4xl: clamp(48px, 7vw, 88px); /* hero headline */

  /* Line heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing */
  --tracking-tight: -0.03em;
  --tracking-snug: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* Font weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --container: 1360px;
  --pad-x: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0, 0.5, 0.2, 1);
}

html[data-theme='dark'] {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --bg-3: var(--ink-3);
  --fg: var(--paper);
  --fg-2: #c9c7c0;
  --fg-dim: #8a8880;
  --border: rgba(247, 245, 240, 0.1);
  --border-strong: rgba(247, 245, 240, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease);
}

/* =============================================
   Custom Cursor
   ============================================= */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, [role="button"], input, textarea, select, label { cursor: none; }
}

#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  border-radius: 50%;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--fg-dim);
  translate: -50% -50%;
  transition:
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    background 0.25s var(--ease);
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--fg-dim);
  opacity: 0.4;
  translate: -50% -50%;
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    opacity 0.35s var(--ease),
    border-color 0.3s var(--ease);
}

/* Hover state — orange */
body.cursor-hover #cursor-dot {
  background: var(--orange);
  width: 6px;
  height: 6px;
}
body.cursor-hover #cursor-ring {
  width: 52px;
  height: 52px;
  opacity: 0.55;
  border-color: var(--orange);
}

/* Click state */
body.cursor-click #cursor-dot {
  width: 9px;
  height: 9px;
}
body.cursor-click #cursor-ring {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}
/* Offset for fixed nav */
body {
  padding-top: 68px;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Logo images — light/dark switching */
.logo--light {
  display: block;
}
.logo--dark {
  display: none;
}

html[data-theme='dark'] .logo--light {
  display: none;
}
html[data-theme='dark'] .logo--dark {
  display: block;
}

/* Theme toggle icons */
.icon-sun {
  display: none;
}
.icon-moon {
  display: block;
}

html[data-theme='dark'] .icon-sun {
  display: block;
}
html[data-theme='dark'] .icon-moon {
  display: none;
}

/* =============================================
   Navigation
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition:
    background 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.nav--hidden {
  transform: translateY(-100%);
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-family: var(--display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-snug);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 64px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.nav.scrolled .nav-logo img {
  height: 40px;
}
.nav-logo .dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--fg-2);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--orange);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after {
  right: 0;
}

.nav-ctrls {
  display: flex;
  gap: 24px;
  align-items: center;
}
.lang-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.lang-toggle:hover,
.theme-toggle:hover {
  border-color: var(--border-strong);
}
.lang-toggle .opt {
  opacity: 0.4;
  padding: 0 2px;
  transition: opacity 0.2s;
}
.lang-toggle .opt.active {
  opacity: 1;
  color: var(--orange);
}
.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.nav-cta {
  padding: 10px 18px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition:
    transform 0.25s var(--ease),
    background 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--orange);
  color: var(--ink);
}

/* =============================================
   Burger button
   ============================================= */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease);
}
.nav-burger:hover {
  border-color: var(--border-strong);
}
.nav-burger__line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.3s var(--ease),
    opacity 0.25s var(--ease);
}
.nav-burger[aria-expanded="true"] .nav-burger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger[aria-expanded="true"] .nav-burger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =============================================
   Mobile menu — fullscreen overlay
   Outside <nav> so parent transform doesn't break position:fixed
   ============================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.mobile-menu[aria-hidden="false"] {
  transform: translateY(0);
  pointer-events: auto;
}

/* Top bar: logo + close */
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__logo img {
  height: 36px;
  width: auto;
}

/* Scrollable body */
.mobile-menu__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 0;
}
.mobile-menu__link {
  font-family: var(--display);
  font-size: clamp(28px, 8vw, 48px);
  font-weight: var(--weight-bold);
  color: var(--fg);
  letter-spacing: var(--tracking-snug);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition:
    color 0.2s var(--ease),
    padding-left 0.25s var(--ease);
}
.mobile-menu__link:hover,
.mobile-menu__link[aria-current="page"] {
  color: var(--orange);
  padding-left: 12px;
}

/* Footer: contacts + lang/cta */
.mobile-menu__footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.mobile-menu__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--fg-2);
  transition: color 0.2s var(--ease);
}
a.mobile-menu__contact-item:hover {
  color: var(--orange);
}
.mobile-menu__contact-item--text {
  cursor: default;
}
.mobile-menu__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--orange);
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  flex-shrink: 0;
}
.mobile-menu__close:hover {
  border-color: var(--border-strong);
  color: var(--orange);
}
.mobile-menu__close svg {
  width: 18px;
  height: 18px;
}
.mobile-menu__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  .nav-ctrls .nav-cta {
    display: none;
  }
  .nav-logo img {
    height: 36px;
  }
  .nav.scrolled .nav-logo img {
    height: 28px;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .nav-burger {
    display: none !important;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  border-radius: 100px;
  transition: transform 0.3s var(--ease);
  position: relative;
  will-change: transform;
}
.btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--orange-deep);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover {
  background: #000;
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--orange);
}

/* =============================================
   Sections — shared
   ============================================= */
.section {
  padding: clamp(32px, 5vw, 90px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}
.section-label__num {
  color: var(--fg-dim);
}
.section-label__sep {
  opacity: 0.4;
  margin: 0 -2px;
}
.section-title {
  font-family: var(--display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-tight);
  margin: 0 0 16px;
  color: var(--fg);
}
.section-subtitle {
  font-size: var(--text-md);
  color: var(--fg-dim);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Tag */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-family: var(--mono);
  color: var(--fg-dim);
}

/* =============================================
   Hero
   ============================================= */
.hero {
  padding: clamp(80px, 14vw, 160px) 0 clamp(32px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: clamp(48px, 8vw, 96px);
}

/* Left column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--fg-dim);
  margin-bottom: 20px;
}
.hero-badge__dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-eyebrow {
  font-family: var(--mono);
  font-weight: 200;
  font-size: var(--text-sm);
  color: var(--fg-dim);
  margin: 0 0 32px;
}

.hero-title {
  font-family: var(--display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 0 0 16px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.hero-stat__value {
  display: block;
  font-family: var(--mono);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-dim);
}
.hero-stat__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--fg-dim);
  margin-top: 4px;
}

/* Right column — floating visual */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Outer container ── */
.flo-visual {
  position: relative;
  width: 480px;
  height: 480px;
  flex-shrink: 0;
}


/* ── Floating tech words ── */
.flo-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.flo-word {
  position: absolute;
  font-size: 12px;
  font-weight: var(--weight-medium);
  font-family: var(--mono);
  color: rgba(93, 93, 93, 0.5);
  opacity: 0;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: opacity 1.4s ease;
}

/* ── Central key image ── */
.flo-key-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flo-key-img {
  position: relative;
  z-index: 2;
  width: 360px;
  height: auto;
  filter:
    drop-shadow(0 0 60px rgba(243,146,0,0.55))
    drop-shadow(0 0 20px rgba(243,146,0,0.35))
    drop-shadow(0 32px 60px rgba(0,0,0,0.22));
  animation: flo-float 4s ease-in-out infinite;
}

@keyframes flo-float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-24px) rotate(2deg); }
}

/* Pulse rings */
.flo-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(243,146,0,0.7);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  animation: flo-pulse-ring 3.2s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.flo-pulse--1 { width: 280px; height: 280px; animation-delay: 0s; }
.flo-pulse--2 { width: 400px; height: 400px; animation-delay: 1.07s; }
.flo-pulse--3 { width: 520px; height: 520px; animation-delay: 2.13s; }

@keyframes flo-pulse-ring {
  0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  70%  { opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 0; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-right {
    display: none;
  }
}

/* =============================================
   Ticker
   ============================================= */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--bg);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333%);
  }
}

.ticker__list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker__item {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
  padding: 0 20px;
  transition: color 0.2s var(--ease);
}

.ticker__item:hover {
  color: var(--fg);
}

.ticker__sep {
  font-size: 7px;
  color: var(--orange);
  flex-shrink: 0;
}

/* =============================================
   Services
   ============================================= */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 36px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s var(--ease);
}
.service-card:hover {
  background: var(--bg-2);
}

.service-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-card__num {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}
.service-card__arrow {
  font-size: 18px;
  color: var(--fg-dim);
  transition:
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.service-card:hover .service-card__arrow {
  color: var(--fg);
  transform: translate(2px, -2px);
}

.service-card__title {
  font-family: var(--display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  margin: 0;
  color: var(--fg);
  flex: 1;
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--fg-dim);
  line-height: var(--leading-relaxed);
  margin: 0;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.service-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--fg-dim);
  white-space: nowrap;
}

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

/* =============================================
   Cases
   ============================================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.case-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    transform 0.3s var(--ease);
  background: var(--bg-2);
}
.case-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.case-card--featured {
  grid-column: span 8;
}
.case-card:nth-child(7) {
  grid-column: span 8;
}

.case-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}
.case-card--featured .case-card__img {
  aspect-ratio: 16/7;
}
.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.case-card:hover .case-card__img img {
  transform: scale(1.04);
}
.case-card__img--empty {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}

.case-card__body {
  padding: 24px;
  flex: 1;
}
.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.case-card__title {
  font-family: var(--display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0 0 8px;
  letter-spacing: var(--tracking-snug);
}
.case-card__desc {
  font-size: var(--text-sm);
  color: var(--fg-dim);
  margin: 0;
  line-height: var(--leading-relaxed);
}
/* =============================================
   Cases — responsive
   ============================================= */

/* Tablet: 2 columns, featured cards span full width */
@media (max-width: 1024px) and (min-width: 681px) {
  .cases-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
  .case-card {
    grid-column: span 3;
  }
  .case-card--featured,
  .case-card:nth-child(7) {
    grid-column: span 6;
  }
  .case-card--featured .case-card__img {
    aspect-ratio: 16 / 8;
  }
}

/* Mobile: single column */
@media (max-width: 680px) {
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .case-card,
  .case-card--featured,
  .case-card:nth-child(7) {
    grid-column: span 1;
  }
  .case-card {
    border-radius: 12px;
  }
  .case-card__img,
  .case-card--featured .case-card__img {
    aspect-ratio: 16 / 10;
  }
  .case-card__body {
    padding: 18px 18px 20px;
  }
  .case-card__title {
    font-size: var(--text-base);
  }
  .case-card__desc {
    font-size: var(--text-xs);
  }
  /* Меньший hover-сдвиг — на тач-устройствах он лишний */
  .case-card:hover {
    transform: none;
  }
  .case-card:hover .case-card__img img {
    transform: none;
  }
}

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

.process-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  min-height: 520px;
}

/* Left nav */
.process-nav {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.process-nav__item {
  padding: 20px 28px;
  background: var(--bg);
  border: none;
  border-left: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-width 0.2s var(--ease),
    border-color 0.2s var(--ease),
    padding-left 0.2s var(--ease);
  border-bottom: 1px solid var(--border);
}

.process-nav__item:hover {
  background: var(--bg-2);
}
.process-nav__item.is-active {
  border-left-color: var(--orange);
  border-left-width: 2px;
  padding-left: 36px;
}
.process-nav__num {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--fg-dim);
  flex-shrink: 0;
  padding-top: 3px;
}
.process-nav__item.is-active .process-nav__num {
  color: var(--orange);
}
.process-nav__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.process-nav__title {
  font-family: var(--display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  color: var(--fg);
  margin: 8px 0;
  line-height: var(--leading-snug);
}
.process-nav__duration {
  font-size: var(--text-xs);
  color: var(--fg-dim);
}

/* Right detail */
.process-detail {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.process-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 52px);
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0s linear 0.3s;
  pointer-events: none;
}
.process-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0s linear 0s;
}
.process-panel__num {
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--orange);
  margin-bottom: 16px;
}
.process-panel__title {
  font-family: var(--display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 0 0 20px;
  color: var(--fg);
}
.process-panel__desc {
  font-size: var(--text-base);
  color: var(--fg-dim);
  line-height: var(--leading-relaxed);
  margin: 0;
  max-width: 520px;
}
.process-panel__divider {
  width: 80px;
  height: 1px;
  background: var(--border-strong);
  margin: 24px 0 16px;
  border: none;
  border-top: 1px dashed var(--border-strong);
  background: none;
}
.process-panel__duration {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 28px;
}
.process-panel__visual {
  margin-top: auto;
  padding-top: 28px;
}

/* Process diagrams */
.process-diagram {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
}
.process-diagram__flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pd-node {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px;
  line-height: 1.3;
}
.pd-node--circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  color: var(--fg-dim);
  flex-shrink: 0;
}
.pd-node--filled {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--ink);
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
}
.pd-arrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--border-strong);
  letter-spacing: 2px;
  flex-shrink: 0;
}

/* Sprint diagram */
.process-diagram__sprints {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pd-sprint {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pd-sprint__label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--fg-dim);
  width: 80px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pd-sprint__bar {
  flex: 1;
  height: 2px;
  background: var(--border-strong);
  border-radius: 2px;
  position: relative;
}
.pd-sprint__bar--filled {
  background: var(--orange);
}
.pd-sprint__demo {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--fg-dim);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pd-sprint__demo--active {
  color: var(--orange);
}

@media (max-width: 860px) {
  .process-layout {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: unset;
  }

  /* Nav — horizontal scroll, hidden scrollbar */
  .process-nav {
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .process-nav::-webkit-scrollbar {
    display: none;
  }
  .process-nav__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-right: 1px solid var(--border);
    padding: 14px 16px;
    min-width: 0;
    flex: 1 0 auto;
    width: calc(25% - 0px);
  }
  .process-nav__item.is-active {
    border-left-color: transparent;
    border-left-width: 1px;
    padding-left: 16px;
    border-bottom-color: var(--orange);
    background: var(--bg-2);
  }
  .process-nav__title {
    font-size: var(--text-base);
  }
  .process-nav__duration {
    display: none;
  }

  /* Panels — drop absolute positioning, use display none/flex */
  .process-detail {
    min-height: unset;
  }
  .process-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
    display: none;
  }
  .process-panel.is-active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  /* Diagrams — prevent overflow */
  .process-diagram__flow {
    gap: 8px;
  }
  .pd-node--circle,
  .pd-node--filled {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 540px) {
  /* Small screens — vertical accordion instead of tabs */
  .process-nav {
    flex-direction: column;
    overflow-x: unset;
    border-bottom: none;
  }
  .process-nav__item {
    width: 100%;
    flex: none;
    border-right: none;
    border-left: 2px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
  }
  .process-nav__item.is-active {
    border-left-color: var(--orange);
    border-left-width: 2px;
    border-bottom-color: var(--border);
    padding-left: 24px;
    background: var(--bg-2);
  }
  .process-nav__duration {
    display: inline;
  }
  .process-panel {
    padding: clamp(20px, 5vw, 32px);
  }
  .process-panel__visual {
    margin-top: 24px;
  }
  .process-diagram__flow {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =============================================
   Technologies
   ============================================= */

.tech-group {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: baseline;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.tech-group__label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  color: var(--fg-dim);
  padding-top: 6px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
}

.tech-list:has(.tech-item:hover) .tech-item {
  opacity: 0.3;
}
.tech-list:has(.tech-item:hover) .tech-item:hover {
  opacity: 1;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: opacity 0.25s ease;
}

.tech-item__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.tech-item__name {
  font-size: clamp(1.3rem, 1.75vw, 2rem);
  font-weight: var(--weight-medium);
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
}

.tech-item__sep {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: var(--weight-light);
  color: var(--border-strong);
  margin: 0 12px;
  line-height: 1.2;
  user-select: none;
}

@media (max-width: 640px) {
  .tech-group {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
}

/* =============================================
   Contact
   ============================================= */
.contact {
  background: var(--bg-2);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info .section-title {
  margin-bottom: 12px;
}
.contact-info__desc {
  font-size: var(--text-base);
  color: var(--fg-dim);
  line-height: var(--leading-relaxed);
  margin: 0 0 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.2s var(--ease);
}
.contact-detail:hover {
  border-color: var(--border-strong);
}
.contact-detail__label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.contact-detail__value {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--fg);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--fg-2);
}
.form-input {
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font: inherit;
  font-size: var(--text-base);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  outline: none;
  width: 100%;
  resize: none;
}
.form-input::placeholder {
  color: var(--fg-dim);
}
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--orange) 15%, transparent);
}
.form-textarea {
  min-height: 140px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
}

.faq-item__question {
  font-size: var(--text-lg);
  font-weight: var(--weight-normal);
  line-height: var(--leading-snug);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s var(--ease),
    border-color 0.2s var(--ease);
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--fg);
  border-radius: 1px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.faq-item__icon::before {
  width: 10px;
  height: 1px;
}

.faq-item__icon::after {
  width: 1px;
  height: 10px;
}

.faq-item__trigger[aria-expanded='true'] .faq-item__icon {
  border-color: var(--orange);
}

.faq-item__trigger[aria-expanded='true'] .faq-item__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item__body {
  overflow: hidden;
}

.faq-item__body[hidden] {
  display: block;
  max-height: 0;
  visibility: hidden;
}

.faq-item__body.is-open {
  visibility: visible;
}

.faq-item__answer {
  padding-bottom: 28px;
  font-size: var(--text-base);
  color: var(--fg-dim);
  line-height: var(--leading-relaxed);
  max-width: 720px;
}

/* =============================================
   Stats
   ============================================= */
.stats {
  background: var(--ink);
  color: var(--paper);
}

.stats .section-label {
  color: color-mix(in oklab, var(--paper) 50%, transparent);
}

.stats .section-title {
  color: var(--paper);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(247, 245, 240, 0.12);
  border-left: 1px solid rgba(247, 245, 240, 0.12);
}

.stat-card {
  padding: 48px 40px;
  border-right: 1px solid rgba(247, 245, 240, 0.12);
  border-bottom: 1px solid rgba(247, 245, 240, 0.12);
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card__value {
  font-family: var(--display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--orange);
  margin-bottom: 16px;
}

.stat-card__label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
}

/* =============================================
   Clients
   ============================================= */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.client-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 120px;
  transition: background 0.2s var(--ease);
}

.client-cell:hover {
  background: var(--bg-2);
}

.client-cell__logo {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.2s var(--ease);
}

.client-cell:hover .client-cell__logo {
  filter: grayscale(0) opacity(1);
}

.client-cell__name {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--ink);
  color: var(--paper);
}

/* Main grid */
.footer-body {
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

/* Brand */
.footer-logo img {
  height: 52px;
  width: auto;
  margin-bottom: 24px;
}
.footer-logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--paper);
  margin-bottom: 24px;
}
.footer-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.footer-brand-desc {
  font-size: var(--text-sm);
  color: rgba(247, 245, 240, 0.5);
  line-height: var(--leading-relaxed);
  margin: 0 0 28px;
  max-width: 320px;
}

/* Socials */
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(247, 245, 240, 0.15);
  border-radius: 8px;
  color: rgba(247, 245, 240, 0.5);
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.footer-social:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(243, 146, 0, 0.08);
}
.footer-social svg {
  width: 15px;
  height: 15px;
}

/* Nav columns */
.footer-nav-heading {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.35);
  margin: 0 0 20px;
}
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav-list a {
  font-size: var(--text-sm);
  color: rgba(247, 245, 240, 0.65);
  transition: color 0.2s var(--ease);
}
.footer-nav-list a:hover {
  color: var(--paper);
}

/* Contact column */
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.footer-contact-label {
  display: block;
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.35);
  margin-bottom: 3px;
}
.footer-contact-value {
  font-size: var(--text-sm);
  color: rgba(247, 245, 240, 0.75);
  transition: color 0.2s var(--ease);
}
a.footer-contact-value:hover {
  color: var(--orange);
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(247, 245, 240, 0.1);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: rgba(247, 245, 240, 0.35);
  margin: 0;
  flex: 1;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  color: rgba(247, 245, 240, 0.35);
  margin: 0;
}
.footer-legal a {
  color: rgba(247, 245, 240, 0.35);
  transition: color 0.2s var(--ease);
}
.footer-legal a:hover {
  color: rgba(247, 245, 240, 0.75);
}
.footer-made {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: rgba(247, 245, 240, 0.25);
  margin: 0;
}
.footer-made-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 40px);
  }
  .footer-brand {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 28px;
  }
  .footer-brand-desc {
    max-width: 100%;
    margin-bottom: 0;
  }
  .footer-contact-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 768px – tablet portrait ── */
@media (max-width: 768px) {
  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .footer-brand-desc {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .footer-contact-list {
    grid-template-columns: 1fr;
  }
  .footer-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-cta-text {
    font-size: var(--text-xl);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .footer-brand-desc {
    margin-bottom: 0;
  }
  .footer-nav-heading {
    margin-bottom: 14px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-legal {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .footer-copy {
    flex: none;
  }
}

/* =============================================
   Modal: Discuss Project
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-x);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 560px;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.modal__close:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: var(--bg-2);
}

.modal__title {
  font-family: var(--display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--fg);
  margin: 0 0 8px;
}

.modal__subtitle {
  font-size: var(--text-sm);
  color: var(--fg-dim);
  margin: 0 0 28px;
  line-height: var(--leading-relaxed);
}

.modal-form .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 600px) {
  .modal {
    padding: 32px 24px;
    border-radius: 16px;
  }
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    padding: 36px 28px;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 28px;
    flex-wrap: wrap;
  }
}
