/* ============================================================
   KAIRONET — DESIGN SYSTEM (neumorphism / soft UI rebuild)
   Rebuilt from the minimalist flat version:
   - Every card, button, input, badge and toggle now reads as
     material pressed into or raised out of one continuous
     surface, using dual soft shadows (light + dark) instead of
     hard borders and flat fills.
   - Resting = raised (var(--n-out-*)). Active / selected / pressed
     states (open menu, current page, active filter, focused
     input) = recessed (var(--n-in-*)). This mapping is used
     consistently everywhere so the UI is legible by feel, not
     just by color.
   - Every class name, JS hook and state selector (.scrolled,
     .open, [aria-expanded], .in, etc.) from the original file is
     preserved unchanged — only the visual treatment changed, so
     no template markup or JS needs to change.
   ============================================================ */

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
  /* Base surface — cards emerge from THIS same color via shadow,
     not via a different background color. That's the core trick
     of neumorphism, so --surface intentionally equals --void.
     Palette: "dusk orchid" — a warm charcoal-aubergine base (not
     pure black/grey) paired with a muted violet accent. Chosen to
     read as a distinctive, slightly premium creative-agency tone
     rather than the generic blue-tech or terracotta-cream defaults. */
  --void: #1e1b24;
  --surface: #1e1b24;
  --surface-2: #26222e;   /* recessed / nested panels (insets, mock UI) */
  --glass: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.06);
  --ink: #efecf3;
  --ink-dim: #a099ac;
  --ink-faint: #6e6779;

  /* Single accent — a muted orchid/violet instead of a system blue,
     softer and warmer, fits the "soft" feeling better */
  --blue: #9c7cf4;
  --blue-deep: #7f5cf0;
  --blue-glow: #c3aefc;
  --blue-dim: #ab8ef7;
  --blue-bg: rgba(156, 124, 244, 0.12);
  --blue-border: rgba(156, 124, 244, 0.28);

  --face-rgb: 255, 255, 255;
  --void-rgb: 30, 27, 36;
  --surface2-rgb: 38, 34, 46;

  --bg-glow-1: 0.05;
  --bg-glow-2: 0.03;
  --bg-glow-3: 0.02;

  --font-fa: 'Vazirmatn', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;

  /* Softer, rounder radii — this alone does a lot of the "soft"
     feeling before shadows even come into play */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.16, 0.84, 0.36, 1);

  --container-width: 1240px;
  --container-padding: 28px;

  /* --- Neumorphic shadow tokens --- */
  --shadow-light: rgba(255, 255, 255, 0.045);
  --shadow-dark: rgba(0, 0, 0, 0.55);
  --shadow-dark-accent: rgba(30, 15, 55, 0.55);

  --n-out-sm: 4px 4px 9px var(--shadow-dark), -4px -4px 9px var(--shadow-light);
  --n-out: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);
  --n-out-lg: 14px 14px 32px var(--shadow-dark), -10px -10px 26px var(--shadow-light);
  --n-in-sm: inset 3px 3px 7px var(--shadow-dark), inset -3px -3px 7px var(--shadow-light);
  --n-in: inset 5px 5px 12px var(--shadow-dark), inset -5px -5px 12px var(--shadow-light);
  --n-in-lg: inset 8px 8px 18px var(--shadow-dark), inset -6px -6px 16px var(--shadow-light);
  --n-accent: 8px 8px 18px var(--shadow-dark-accent), -8px -8px 18px var(--shadow-light);
  --n-accent-lg: 12px 12px 26px var(--shadow-dark-accent), -10px -10px 22px var(--shadow-light);
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] {
  --void: #f2eef8;
  --surface: #f2eef8;
  --surface-2: #e9e2f2;
  --glass: rgba(30, 20, 45, 0.03);
  --glass-border: rgba(30, 20, 45, 0.06);
  --line: rgba(30, 20, 45, 0.07);
  --ink: #292333;
  --ink-dim: #6d6379;
  --ink-faint: #9d93ab;
  --face-rgb: 30, 20, 45;
  --void-rgb: 242, 238, 248;
  --surface2-rgb: 233, 226, 242;
  --bg-glow-1: 0.04;
  --bg-glow-2: 0.02;
  --bg-glow-3: 0.02;

  --blue: #7f5cf0;
  --blue-deep: #6a45dd;
  --blue-glow: #9c7cf4;
  --blue-dim: #8c6ef2;
  --blue-bg: rgba(127, 92, 240, 0.1);
  --blue-border: rgba(127, 92, 240, 0.25);

  --shadow-light: #ffffff;
  --shadow-dark: rgba(176, 165, 198, 0.55);
  --shadow-dark-accent: rgba(127, 92, 240, 0.28);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
}

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-fa);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(1200px 700px at 50% -10%, rgba(156, 124, 244, var(--bg-glow-1)), transparent 60%);
  transition: background 0.5s ease;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

section {
  position: relative;
  z-index: 1;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

::selection {
  background: var(--blue);
  color: #fff;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-glow);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: none;
  box-shadow: var(--n-out-sm);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.25;
}

.section-head p {
  color: var(--ink-dim);
  font-size: 16.5px;
  margin-top: 14px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.grid-full { grid-column: 1 / -1; }
.text-blue { color: var(--blue); }
.text-dim { color: var(--ink-dim); }
.text-faint { color: var(--ink-faint); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

/* ============================================
   BUTTONS — raised by default, press in on click
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: box-shadow 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--n-accent);
}
.btn-primary:hover {
  background: var(--blue-deep);
  box-shadow: var(--n-accent-lg);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--n-in);
}

.btn-ghost {
  background: var(--surface);
  border: none;
  color: var(--ink);
  box-shadow: var(--n-out-sm);
}
.btn-ghost:hover {
  color: var(--blue-glow);
  box-shadow: var(--n-out);
}
.btn-ghost:active {
  box-shadow: var(--n-in-sm);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { display: flex; width: 100%; padding: 12px 20px; font-size: 14px; }

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  box-shadow: none;
}

header.scrolled {
  background: rgba(var(--void-rgb), 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -14px var(--shadow-dark), 0 1px 0 var(--line);
  padding: 12px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}
.logo-mark { width: 32px; height: 32px; position: relative; flex-shrink: 0; }
.logo span { font-family: var(--font-mono); }
.logo .dot { color: var(--blue); }

nav.main-nav { display: flex; align-items: center; gap: 34px; }
nav.main-nav a { font-size: 15px; color: var(--ink-dim); transition: color 0.2s; position: relative; }
nav.main-nav a:hover { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: none;
  box-shadow: var(--n-out-sm);
  align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.25s var(--ease);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: 0.25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open { box-shadow: var(--n-in-sm); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: none;
  box-shadow: var(--n-out-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  transition: box-shadow 0.25s, color 0.25s;
}
.theme-toggle:hover { color: var(--blue-glow); box-shadow: var(--n-out); }
.theme-toggle:active { box-shadow: var(--n-in-sm); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ============================================
   HERO
   ============================================ */
.hero { padding: 160px 0 110px; position: relative; overflow: hidden; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }

.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.28; }
.hero h1 em { font-style: normal; color: var(--blue); }

.hero-sub { color: var(--ink-dim); font-size: 17.5px; max-width: 520px; margin: 22px 0 20px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-bottom: 36px; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink); }
.hero-points svg { flex-shrink: 0; color: var(--blue); }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-centered { display: flex; justify-content: center; text-align: center; }
.hero-centered .hero-copy { max-width: 800px; }
.hero-centered .eyebrow { margin-inline: auto; margin-bottom: 20px; }
.hero-centered .hero-sub { max-width: 600px; margin-inline: auto; }
.hero-centered .hero-points,
.hero-centered .hero-ctas { justify-content: center; }

/* Hero visual — soft rings, raised nodes, no glow */
.hero-visual { position: relative; height: 540px; }
.orbit-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.orbit-ring { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.r1 { width: 220px; height: 220px; animation: spin 40s linear infinite; }
.r2 { width: 330px; height: 330px; animation: spin 60s linear infinite reverse; }
.r3 { width: 440px; height: 440px; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-core {
  position: relative;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: var(--n-accent);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.orbit-core span { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: #fff; letter-spacing: 0.02em; }

.orbit-node {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border-radius: 100px;
  background: var(--surface);
  border: none;
  box-shadow: var(--n-out-sm);
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
}
.orbit-node i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.n1 { top: 8%; right: 6%; }
.n2 { top: 18%; left: 0%; }
.n3 { bottom: 20%; left: 4%; }
.n4 { bottom: 6%; right: 14%; }
.n5 { top: 48%; right: -4%; }

.float-card {
  position: absolute;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: none;
  box-shadow: var(--n-out);
  padding: 16px 18px;
}
.float-card.card-a { top: 2%; left: 8%; width: 190px; }
.float-card.card-b { bottom: 0; right: 2%; width: 210px; }

.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 50px; margin-top: 10px; }
.mock-bars i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; opacity: 0.85; }
.mock-title { font-size: 12px; color: var(--ink-dim); font-family: var(--font-fa); display: flex; justify-content: space-between; }
.mock-title b { color: var(--ink); font-weight: 600; }
.mock-score { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--blue); margin-top: 6px; }

/* ============================================
   TRUST SECTION
   ============================================ */
.trust { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.trust-item { text-align: center; padding: 0 10px; border-inline-start: 1px solid var(--line); }
.trust-item:first-child { border-inline-start: none; }
.trust-num { font-family: var(--font-mono); font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; color: var(--ink); }
.trust-num span { color: var(--blue); }
.trust-label { color: var(--ink-dim); font-size: 14px; margin-top: 6px; }

/* ============================================
   SERVICES (home teaser cards)
   ============================================ */
.services { padding: 120px 0 100px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }

.s-card {
  padding: 30px 26px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: none;
  box-shadow: var(--n-out);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.s-card:hover { transform: translateY(-4px); box-shadow: var(--n-out-lg); }
.s-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--n-out-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}
.s-card h3 { font-size: 18px; margin-bottom: 10px; }
.s-card p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.75; }

/* ============================================
   WHY SECTION
   ============================================ */
.why { padding: 100px 0; }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 4px; }
.why-item { display: flex; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.why-item:last-child { border-bottom: none; }
.why-num { font-family: var(--font-mono); color: var(--blue); font-weight: 700; font-size: 14px; flex-shrink: 0; padding-top: 2px; }
.why-item h3, .why-item h4 { font-size: 16.5px; margin-bottom: 6px; }
.why-item p { color: var(--ink-dim); font-size: 14.5px; }

.why-visual {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: none;
  box-shadow: var(--n-out-lg);
  padding: 30px;
  height: 100%;
  min-height: 460px;
  position: relative;
  overflow: hidden;
}
.panel-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-dots { display: flex; gap: 6px; }
.panel-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.panel-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.panel-metric { background: var(--surface-2); border: none; box-shadow: var(--n-in-sm); border-radius: var(--radius-sm); padding: 18px; }
.panel-metric b { display: block; font-family: var(--font-mono); font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.panel-metric span { font-size: 12.5px; color: var(--ink-faint); }
.panel-metric .up { color: #4fbf85; font-family: var(--font-fa); font-size: 12px; }
.panel-chart { margin-top: 16px; height: 120px; position: relative; }

/* ============================================
   PORTFOLIO (home teaser)
   ============================================ */
.portfolio { padding: 100px 0; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.p-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  background: var(--surface);
  box-shadow: var(--n-out);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--n-out-lg); }

.p-thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; direction: ltr; display: block; }

.p-thumb .tag,
.project-thumb .tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(var(--void-rgb), 0.8);
  border: none;
  box-shadow: var(--n-out-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 2;
  color: var(--ink);
}

.p-thumb-inner { position: absolute; inset: 0; }
.thumb-corp { background: var(--surface-2); }
.thumb-shop { background: var(--surface-2); }
.thumb-land { background: var(--surface-2); }

.thumb-ui {
  position: absolute; inset: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: var(--n-in-sm);
  border: none;
  padding: 16px;
}
.thumb-ui .l1 { width: 60%; height: 8px; border-radius: 4px; background: rgba(var(--face-rgb), 0.12); margin-bottom: 10px; }
.thumb-ui .l2 { width: 85%; height: 8px; border-radius: 4px; background: rgba(var(--face-rgb), 0.07); margin-bottom: 8px; }
.thumb-ui .l3 { width: 45%; height: 8px; border-radius: 4px; background: rgba(var(--face-rgb), 0.07); }
.thumb-ui .chip { position: absolute; bottom: 16px; left: 16px; right: 16px; height: 32px; border-radius: var(--radius-sm); background: var(--blue); opacity: 0.9; }

.p-body { padding: 22px 24px 26px; }
.p-body h3 { font-size: 17.5px; margin-bottom: 8px; }
.p-body p { color: var(--ink-dim); font-size: 14px; margin-bottom: 14px; }
.p-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.p-meta span {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--blue-glow);
  background: var(--surface);
  box-shadow: var(--n-out-sm);
  border: none;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ============================================
   SEO CONTENT
   ============================================ */
.seo-content { padding: 90px 0; }
.seo-box { border-radius: var(--radius-lg); border: none; box-shadow: var(--n-out); background: var(--surface); padding: 48px; }
.seo-box h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 18px; }
.seo-box p { color: var(--ink-dim); font-size: 15.5px; margin-bottom: 16px; max-width: 900px; }
.seo-box h3 { font-size: 17px; margin: 24px 0 10px; color: var(--ink); }

/* ============================================
   PROCESS
   ============================================ */
.process { padding: 100px 0; }
.process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.process-track::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 9%; left: 9%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.proc-step { position: relative; z-index: 1; padding: 0 8px; }
.proc-num {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  box-shadow: var(--n-out-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; color: var(--blue-glow);
  margin-bottom: 18px;
}
.proc-step h3, .proc-step h4 { font-size: 15.5px; margin-bottom: 8px; }
.proc-step p { color: var(--ink-dim); font-size: 13.5px; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 100px 0; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-card { padding: 28px 26px; border-radius: var(--radius-md); border: none; box-shadow: var(--n-out); background: var(--surface); }
.t-stars { color: var(--blue); font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.t-card p { font-size: 15px; color: var(--ink); margin-bottom: 22px; line-height: 1.8; }
.t-person { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: var(--n-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-mono); color: #fff; flex-shrink: 0;
}
.t-person b { font-size: 14.5px; display: block; }
.t-person span { font-size: 12.5px; color: var(--ink-dim); }

/* ============================================
   FAQ
   ============================================ */
.faq { padding: 100px 0; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: none; box-shadow: var(--n-out); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-size: 15.5px; font-weight: 600;
  text-align: start;
  color: var(--ink);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--n-out-sm);
  border: none;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--blue-glow);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .plus::before { width: 10px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 10px; transition: opacity 0.3s; }
.faq-q[aria-expanded="true"] .plus,
.faq-q.open .plus { transform: rotate(45deg); box-shadow: var(--n-in-sm); }
.faq-a[hidden] { display: none; }
.faq-a p { padding: 0 24px 22px; color: var(--ink-dim); font-size: 14.5px; max-width: 700px; }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta { padding: 120px 0; }
.cta-box {
  text-align: center;
  padding: 72px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: none;
  box-shadow: var(--n-out-lg);
}
.cta-box h2 { font-size: clamp(26px, 4vw, 40px); position: relative; z-index: 1; }
.cta-box p { color: var(--ink-dim); margin: 16px auto 32px; max-width: 520px; font-size: 16px; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============================================
   BLOG POST SINGLE
   ============================================ */
.post-header { padding: 140px 0 40px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-dim); flex-wrap: wrap; margin-bottom: 28px; }
.breadcrumb a { color: var(--ink-dim); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .separator { color: var(--ink-faint); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.post-header-content { max-width: 780px; margin: 0 auto; }
.post-meta-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; margin-bottom: 16px; }

.category-badge {
  background: var(--surface);
  box-shadow: var(--n-out-sm);
  color: var(--blue);
  padding: 2px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 12px;
}

.post-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.28; margin-bottom: 16px; letter-spacing: -0.01em; }
.post-excerpt { color: var(--ink-dim); font-size: 16.5px; line-height: 1.8; margin-bottom: 24px; }

.post-author { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: var(--n-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.author-info .author-name { display: block; font-weight: 600; font-size: 15px; }
.author-info .author-role { display: block; font-size: 13px; color: var(--ink-faint); }

.post-featured-image { padding: 20px 0 40px; }
.image-wrapper { max-width: 900px; margin: 0 auto; border-radius: var(--radius-md); overflow: hidden; border: none; box-shadow: var(--n-out); background: var(--surface); }
.image-wrapper img { width: 100%; height: auto; display: block; }

.post-content-section { padding: 20px 0 60px; }
.content-wrapper { display: grid; grid-template-columns: 1fr 280px; gap: 50px; align-items: start; }
.post-main { min-width: 0; }

.post-article { color: var(--ink); font-size: 16.5px; line-height: 2.05; }
.post-article h1, .post-article h2, .post-article h3, .post-article h4 {
  margin-top: 34px; margin-bottom: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em;
}
.post-article h1 { font-size: 30px; }
.post-article h2 { font-size: 26px; }
.post-article h3 { font-size: 21px; }
.post-article h4 { font-size: 17.5px; }
.post-article p { margin-bottom: 20px; }
.post-article ul, .post-article ol { margin: 16px 0 20px; padding-inline-start: 24px; }
.post-article ul { list-style: disc; }
.post-article ol { list-style: decimal; }
.post-article li { margin-bottom: 8px; }
.post-article a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; transition: color 0.25s; }
.post-article a:hover { color: var(--blue-deep); }
.post-article blockquote {
  border-inline-start: 3px solid var(--blue);
  padding: 14px 22px;
  margin: 22px 0;
  background: var(--surface-2);
  box-shadow: var(--n-in-sm);
  border-radius: 4px;
  color: var(--ink-dim);
  font-style: italic;
}
.post-article pre { background: var(--surface-2); box-shadow: var(--n-in-sm); padding: 18px; border-radius: var(--radius-sm); overflow: auto; margin: 20px 0; font-size: 14px; line-height: 1.6; }
.post-article code { background: var(--surface-2); box-shadow: var(--n-in-sm); padding: 2px 8px; border-radius: 5px; font-size: 14px; }
.post-article img { max-width: 100%; border-radius: var(--radius-sm); margin: 22px 0; }
.post-article table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-article th, .post-article td { padding: 10px 16px; border: 1px solid var(--line); text-align: start; }
.post-article th { background: var(--surface-2); font-weight: 700; }

.post-tags { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tags-label { font-size: 14px; font-weight: 600; color: var(--ink-dim); margin: 0; }
.tags-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-item { font-size: 13px; color: var(--ink-dim); background: var(--surface); padding: 4px 14px; border-radius: 100px; border: none; box-shadow: var(--n-out-sm); transition: all 0.25s; }
.tag-item:hover { color: var(--blue); box-shadow: var(--n-out); }

.post-share { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.share-label { font-size: 14px; font-weight: 600; color: var(--ink-dim); margin: 0; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 38px; height: 38px; flex: 0 0 auto; padding: 0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: var(--surface);
  box-shadow: var(--n-out-sm);
  color: var(--ink-dim);
  transition: all 0.25s;
  cursor: pointer;
}
.share-btn svg { width: 17px; height: 17px; display: block; flex: 0 0 auto; }
.share-btn.twitter:hover { background: #1da1f2; color: #fff; }
.share-btn.linkedin:hover { background: #0a66c2; color: #fff; }
.share-btn.telegram:hover { background: #0088cc; color: #fff; }
.share-btn.copy-link:hover { background: var(--blue); color: #fff; }
.copied { box-shadow: var(--n-in-sm) !important; color: #4fbf85 !important; }

.related-posts { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.related-title { font-size: 19px; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.related-card { border-radius: var(--radius-sm); overflow: hidden; border: none; box-shadow: var(--n-out-sm); background: var(--surface); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.related-card:hover { box-shadow: var(--n-out); transform: translateY(-2px); }
.related-image { height: 140px; overflow: hidden; background: var(--surface-2); }
.related-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.related-card:hover .related-image img { transform: scale(1.03); }
.related-image .no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-dim); font-size: 12px; }
.related-info { padding: 15px 16px 18px; }
.related-info h3, .related-info h4 { font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
.related-info time { font-size: 12px; color: var(--ink-faint); }

/* Sidebar (single post) */
.post-sidebar { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (min-width: 769px) { .post-sidebar { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; } }

.sidebar-widget { border-radius: var(--radius-md); border: none; box-shadow: var(--n-out); background: var(--surface); padding: 20px 22px; }
.widget-title { font-size: 15.5px; margin-bottom: 15px; font-weight: 700; }
.widget-list { display: flex; flex-direction: column; gap: 2px; }
.widget-link { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-dim); border-bottom: 1px solid var(--line); transition: color 0.25s; font-size: 14px; }
.widget-link:hover { color: var(--blue); }
.widget-link .count { background: var(--surface-2); box-shadow: var(--n-in-sm); padding: 0 10px; border-radius: 100px; font-size: 12px; }

.popular-list { display: flex; flex-direction: column; gap: 12px; }
.popular-link { display: flex; gap: 14px; align-items: center; color: var(--ink); transition: color 0.25s; text-decoration: none; }
.popular-link:hover { color: var(--blue); }
.popular-number {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%; background: var(--surface); box-shadow: var(--n-out-sm); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--ink-dim);
}
.popular-info { flex: 1; min-width: 0; }
.popular-title { display: -webkit-box; font-size: 14px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popular-meta { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

.sidebar-cta {
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  background: var(--surface);
  box-shadow: var(--n-in);
  border: none;
}
.sidebar-cta .cta-icon { font-size: 32px; margin-bottom: 12px; }
.sidebar-cta h2, .sidebar-cta h4 { font-size: 16.5px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 16px; line-height: 1.6; }
.cta-btn {
  display: inline-block; padding: 10px 26px; border-radius: 100px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--n-accent); transition: box-shadow 0.25s, background 0.25s;
}
.cta-btn:hover { background: var(--blue-deep); box-shadow: var(--n-accent-lg); }

.bottom-cta { padding: 60px 0 100px; }
.bottom-cta .cta-box { text-align: center; padding: 56px 44px; }
.bottom-cta .cta-box h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 14px; }
.bottom-cta .cta-box .highlight { color: var(--blue); }
.bottom-cta .cta-box p { color: var(--ink-dim); max-width: 500px; margin: 0 auto 28px; font-size: 16px; line-height: 1.8; }

/* ============================================
   FOOTER
   ============================================ */
footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 46px; }
.footer-brand p { color: var(--ink-dim); font-size: 14.5px; margin: 16px 0 18px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--surface); border: none; box-shadow: var(--n-out-sm);
  display: flex; align-items: center; justify-content: center; transition: box-shadow 0.25s, color 0.25s;
}
.footer-social a:hover { color: var(--blue); box-shadow: var(--n-out); }

.footer-col h3 {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px;
}
.footer-col h5 { font-size: 14px; margin-bottom: 16px; color: var(--ink); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-dim); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue-glow); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--ink-dim); }
.footer-contact a:hover { color: var(--blue-glow); }
.footer-contact .ltr { direction: ltr; display: inline-block; font-family: var(--font-mono); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 13px;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.js-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-on .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .js-on .reveal { opacity: 1; transform: none; } }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

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

/* ============================================
   APP CHROME — skip link, messages
   ============================================ */
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--blue); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: var(--n-accent);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.header-phone { font-family: var(--font-mono); padding: 12px 20px; font-size: 14.5px; }

body.nav-open { overflow: hidden; }

.messages-wrap { padding-top: 104px; display: flex; flex-direction: column; gap: 12px; }
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-md);
  border: none; box-shadow: var(--n-out-sm); background: var(--surface);
  font-size: 14.5px; color: var(--ink);
}
.alert p { margin: 0; }
.alert-icon { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-mono); font-size: 13px; font-weight: 700; background: var(--surface-2); box-shadow: var(--n-in-sm); }
.alert-success { box-shadow: var(--n-out-sm), inset 0 0 0 1px rgba(79, 191, 133, 0.25); }
.alert-success .alert-icon { color: #4fbf85; }
.alert-error { box-shadow: var(--n-out-sm), inset 0 0 0 1px rgba(240, 90, 90, 0.25); }
.alert-error .alert-icon { color: #f05a5a; }
.alert-info .alert-icon, .alert-warning .alert-icon { color: var(--blue); }

/* ============================================
   FORMS — inputs read as pressed into the surface
   ============================================ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-dim); }
.field .req { color: var(--blue); margin-inline-start: 3px; }

.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface);
  border: none;
  box-shadow: var(--n-in-sm);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.8; }
.field select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(0% + 18px) calc(50% + 1px), calc(0% + 23px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-inline-start: 40px;
}
.field select option { background: var(--surface); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: var(--n-in), 0 0 0 3px var(--blue-bg);
}
.field input[dir="ltr"], .field input[type="email"], .field input[type="tel"], .field input[type="url"] { direction: ltr; text-align: start; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  box-shadow: var(--n-in-sm), inset 0 0 0 1px rgba(240, 90, 90, 0.45);
  background: var(--surface);
}
.field-error { font-size: 13px; color: #f7807f; }

.hp-field, .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}

.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header { padding: 150px 0 46px; position: relative; }
.page-header-inner { max-width: 760px; }
.page-header.center .page-header-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.page-header h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.28; margin-bottom: 16px; }
.page-header .lead { font-size: clamp(15px, 2vw, 17px); color: var(--ink-dim); max-width: 640px; }
.page-header.center .lead { margin-inline: auto; }

/* ============================================
   FILTER BAR, PAGINATION, RESULT COUNT, EMPTY STATE
   Selected / current states are pressed IN (inset shadow)
   instead of solid-filled — active reads as "pushed".
   ============================================ */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-bottom: 26px; padding: 10px 14px;
  background: var(--surface); border: none; box-shadow: var(--n-in-sm); border-radius: var(--radius-md);
}
.filter-bar-secondary { margin-top: -8px; margin-bottom: 26px; background: transparent; box-shadow: none; padding: 0 4px; }
.filter-bar__label { font-size: 12px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; margin-inline-end: 4px; }

.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 100px;
  border: none; background: var(--surface); box-shadow: var(--n-out-sm);
  color: var(--ink-dim); font-size: 14px; font-weight: 500; white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.filter-chip:hover { color: var(--ink); box-shadow: var(--n-out); }
.filter-chip[aria-current="true"], .filter-chip.active {
  background: var(--surface); box-shadow: var(--n-in-sm); color: var(--blue);
}
.filter-chip .count, .filter-chip__count { font-family: var(--font-mono); font-size: 11px; opacity: 0.75; }
.filter-chip-sm { padding: 5px 14px; font-size: 12px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 46px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: none; background: var(--surface); box-shadow: var(--n-out-sm);
  color: var(--ink-dim); font-family: var(--font-mono); font-size: 14px;
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pagination a:hover { color: var(--ink); box-shadow: var(--n-out); }
.pagination [aria-current="page"], .pagination .active { box-shadow: var(--n-in-sm); color: var(--blue); font-weight: 700; }
.pagination .gap { box-shadow: none; background: none; color: var(--ink-faint); }

.result-count { color: var(--ink-dim); font-size: 14px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.result-count__number { font-weight: 700; color: var(--ink); font-family: var(--font-mono); }
.result-count strong { color: var(--blue); font-weight: 600; }

.empty-state { text-align: center; padding: 60px 24px; border: none; box-shadow: var(--n-in); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state__icon { color: var(--ink-faint); margin-bottom: 18px; opacity: 0.5; }
.empty-state h2 { font-size: 20px; margin-bottom: 10px; }
.empty-state p { color: var(--ink-dim); font-size: 15px; max-width: 440px; margin: 0 auto; }

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

.project-card {
  display: flex; flex-direction: column; height: 100%;
  border: none; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--n-out); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--n-out-lg); }
.project-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }

.project-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; direction: ltr; transition: transform 0.4s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.03); }
.project-thumb .thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--ink-faint); }
.project-thumb__badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }

.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size: 18px; line-height: 1.5; }
.project-body p { color: var(--ink-dim); font-size: 14.5px; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.project-tags li, .tag-pill { font-family: var(--font-mono); font-size: 11.5px; padding: 5px 11px; border-radius: 100px; border: none; box-shadow: var(--n-out-sm); color: var(--ink-faint); }
.project-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-faint); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); margin-top: 4px; }
.card-link:hover { color: var(--blue-glow); }

.project-client { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-faint); margin-bottom: 4px; }
.project-client svg { flex-shrink: 0; color: var(--ink-faint); }

.tech-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 500;
  background: var(--surface); border: none; box-shadow: var(--n-out-sm);
  color: var(--ink-dim); transition: all 0.25s;
}
.tech-tag i { font-size: 13px; }
.tech-tag--more { color: var(--ink-faint); font-weight: 600; }

.project-technologies { margin: 18px 0 22px; }
.technologies-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.technologies-list { display: flex; flex-wrap: wrap; gap: 8px; }
.technology-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 500;
  background: var(--surface); border: none; box-shadow: var(--n-out-sm);
  color: var(--ink); transition: all 0.25s;
}
.technology-tag:hover { box-shadow: var(--n-out); }
.technology-tag i { font-size: 16px; }

.project-detail-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.project-featured {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px;
  border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--blue); background: var(--surface); box-shadow: var(--n-out-sm);
}
.featured-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; background: var(--blue); color: #fff; flex-shrink: 0; box-shadow: var(--n-accent);
}
.status-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.status-badge--completed { background: rgba(34, 160, 90, 0.85); color: #fff; }
.status-badge--in_progress { background: rgba(156, 124, 244, 0.85); color: #fff; }

.project-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px;
  margin: 22px 0 30px; padding: 20px 24px;
  background: var(--surface); border: none; box-shadow: var(--n-in); border-radius: var(--radius-md);
}
.info-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.info-item__label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; }
.info-item__label svg { flex-shrink: 0; color: var(--blue); }
.info-item__value { font-size: 15px; font-weight: 500; color: var(--ink); word-break: break-word; }
.info-item--link { grid-column: 1 / -1; }
.info-item__link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--blue); transition: color 0.25s; word-break: break-all; }
.info-item__link:hover { color: var(--blue-glow); }
.info-item__link svg { flex-shrink: 0; transition: transform 0.25s; }
.info-item__link:hover svg { transform: translate(2px, -2px); }

/* ============================================
   SERVICES PAGE (grid + full card)
   ============================================ */
.services-grid-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }

.service-card {
  height: 100%;
  border: none; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--n-out); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--n-out-lg); }

.service-card__link { display: flex; flex-direction: column; padding: 28px 26px; text-decoration: none; color: inherit; height: 100%; }
.service-card__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }

.service-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--n-out-sm); color: var(--blue); flex-shrink: 0;
  transition: box-shadow 0.3s;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { box-shadow: var(--n-out); }

.service-card .tag-pill {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 100px;
  background: var(--surface); box-shadow: var(--n-out-sm); color: var(--blue); margin-bottom: 12px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.service-card p, .service-card__desc { color: var(--ink-dim); font-size: 14.5px; line-height: 1.75; margin-bottom: 16px; flex: 1; }

.service-card__footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto;
}
.service-card__price { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--blue); }

/* --- Service detail --------------------------------------------------- */
.detail-head { padding: 150px 0 56px; }

.service-detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
.service-detail-grid h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; margin-bottom: 18px; }

.service-detail-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.service-detail-top .service-detail-icon { margin-bottom: 0; }

.service-detail-icon {
  width: 70px; height: 70px; display: grid; place-items: center;
  margin-bottom: 20px; border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--n-out); color: var(--blue);
}
.service-detail-icon svg { width: 32px; height: 32px; }

.service-aside {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 24px; border: none; box-shadow: var(--n-out-lg); border-radius: var(--radius-lg); background: var(--surface);
}
@media (min-width: 941px) { .service-aside { position: sticky; top: 100px; } }
.service-aside h2 { font-size: 19px; }
.service-aside .price { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--blue); }
.service-aside .price small { display: block; font-family: var(--font-fa); font-size: 13px; font-weight: 400; color: var(--ink-faint); margin-top: 4px; }

.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-dim); }
.check-list li::before {
  content: "✓"; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); box-shadow: var(--n-out-sm); color: var(--blue); font-size: 11px; font-weight: 700;
}

.prose-block { font-size: 16px; line-height: 2; color: var(--ink-dim); }
.prose-block p { margin-bottom: 18px; }
.prose-block h2, .prose-block h3 { color: var(--ink); margin: 26px 0 14px; }
.prose-block h2 { font-size: 22px; }
.prose-block h3 { font-size: 18px; }

.header-stats { display: flex; justify-content: center; gap: 40px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.header-stat { text-align: center; }
.header-stat__number { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--blue); line-height: 1.2; }
.header-stat__label { display: block; font-size: 13px; color: var(--ink-dim); margin-top: 4px; }

/* --- Portfolio detail -------------------------------------------------- */
.project-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.project-detail-grid h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; margin: 14px 0 18px; }

.project-detail-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: none; box-shadow: var(--n-out-lg); border-radius: var(--radius-lg); background: var(--surface-2); }
.project-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-detail-media .thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--ink-faint); }

/* --- Portfolio gallery -------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-item {
  margin: 0; display: flex; flex-direction: column;
  border: none; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--n-out-sm); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--n-out); }
.gallery-item img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; direction: ltr; background: var(--surface-2); transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption { padding: 12px 16px; font-size: 13.5px; line-height: 1.7; color: var(--ink-dim); border-top: 1px solid var(--line); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-section { padding: 80px 0; }
.page-section-tight { padding: 40px 0 80px; }
.page-section-alt { background: var(--surface); }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 46px; align-items: start; }
.about-box { padding: 32px 28px; border: none; box-shadow: var(--n-out); border-radius: var(--radius-lg); background: var(--surface); }
.about-box h2, .about-box h3 { margin-bottom: 14px; }
.about-box p { color: var(--ink-dim); font-size: 15px; line-height: 1.9; }

.about-card { padding: 24px 22px; border: none; box-shadow: var(--n-out-sm); border-radius: var(--radius-md); background: var(--surface); transition: box-shadow 0.25s var(--ease); }
.about-card:hover { box-shadow: var(--n-out); }
.about-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.about-card p { color: var(--ink-dim); font-size: 14.5px; }

.about-box-row { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.about-box-row:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.about-box-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 8px; }
.about-box-row p { font-size: 16px; line-height: 1.8; color: var(--ink); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pill { padding: 6px 16px; border-radius: 100px; border: none; box-shadow: var(--n-out-sm); font-size: 13px; color: var(--ink-dim); }

.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat-item { padding: 26px 20px; text-align: center; border: none; box-shadow: var(--n-out); border-radius: var(--radius-md); background: var(--surface); }
.stat-number { font-family: var(--font-mono); font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; color: var(--blue); line-height: 1.1; }
.stat-label { margin-top: 8px; font-size: 13.5px; color: var(--ink-dim); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.team-member { padding: 26px 22px; text-align: center; border: none; box-shadow: var(--n-out); border-radius: var(--radius-lg); background: var(--surface); transition: box-shadow 0.25s var(--ease); }
.team-member:hover { box-shadow: var(--n-out-lg); }
.team-avatar { width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); box-shadow: var(--n-accent); color: #fff; font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.team-member h3 { font-size: 16.5px; margin-bottom: 4px; }
.team-role { font-size: 13.5px; color: var(--blue); margin-bottom: 10px; }
.team-member p { font-size: 14px; color: var(--ink-dim); }

.about-cta { padding: 52px 38px; text-align: center; border: none; box-shadow: var(--n-out-lg); border-radius: var(--radius-lg); background: var(--surface); }
.about-cta h2 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 14px; }
.about-cta p { color: var(--ink-dim); max-width: 560px; margin: 0 auto 26px; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-info, .contact-form { padding: 32px 28px; border: none; box-shadow: var(--n-out); border-radius: var(--radius-lg); background: var(--surface); }
.contact-info h2, .contact-form h2 { font-size: 20px; margin-bottom: 8px; }
.contact-info > p, .contact-form > p { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 24px; }

.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list .label { display: block; font-size: 12.5px; color: var(--ink-faint); margin-bottom: 3px; }
.contact-list .value { font-size: 15px; color: var(--ink); }
.contact-list a.value:hover { color: var(--blue); }
.contact-icon-box {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--radius-sm); border: none; background: var(--surface); box-shadow: var(--n-out-sm); color: var(--blue);
  transition: box-shadow 0.25s var(--ease);
}
.contact-icon-box svg { width: 19px; height: 19px; }
.contact-icon-box:hover { box-shadow: var(--n-out); }

.contact-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.contact-social { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-social .label { display: block; font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; }

.contact-map { margin-top: 38px; border: none; box-shadow: var(--n-in); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 7; min-height: 240px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.4); }

/* ============================================
   BLOG LIST / SEARCH
   ============================================ */
.blog-grid { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.blog-main { min-width: 0; }

.blog-post-grid, .blog-related-grid, .blog-featured-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px;
}
.blog-featured-grid { margin-bottom: 44px; }

.blog-post-card {
  border: none; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--n-out); display: flex; flex-direction: column; height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.blog-post-card:hover { transform: translateY(-4px); box-shadow: var(--n-out-lg); }
.blog-post-card--featured { box-shadow: var(--n-out-lg); }
.blog-post-card--featured .blog-post-body h3 { font-size: 19px; }
.blog-post-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }

.blog-post-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.blog-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.blog-post-card:hover .blog-post-image img { transform: scale(1.03); }
.blog-post-image .thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--ink-faint); }
.blog-post-image .tag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  padding: 4px 12px; border-radius: 100px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; box-shadow: var(--n-accent);
}
.blog-post-image .category-badge {
  position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2;
  font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 100px;
  background: rgba(var(--void-rgb), 0.8); border: none; box-shadow: var(--n-out-sm); color: var(--ink);
}

.blog-post-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.blog-post-body h3 { font-size: 17.5px; line-height: 1.6; transition: color 0.25s; }
.blog-post-card:hover .blog-post-body h3 { color: var(--blue); }
.blog-post-body h3 a:hover { color: var(--blue); }
.blog-post-body p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.8; flex: 1; }

.blog-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-faint); }
.blog-post-meta time { font-family: var(--font-mono); }
.blog-post-meta .dot-separator { color: var(--ink-faint); opacity: 0.5; }
.blog-post-meta a { color: var(--ink-faint); transition: color 0.25s; }
.blog-post-meta a:hover { color: var(--blue); }

/* --- Blog sidebar ----------------------------------------------------- */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 769px) { .blog-sidebar { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; } }

.blog-sidebar-widget { padding: 22px 20px; border: none; box-shadow: var(--n-out); border-radius: var(--radius-md); background: var(--surface); }
.blog-sidebar-widget h2, .blog-sidebar-widget h3 { font-size: 15px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.blog-sidebar-widget ul { display: flex; flex-direction: column; gap: 10px; }

.blog-sidebar-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0;
  font-size: 14px; color: var(--ink-dim); transition: color 0.25s; text-decoration: none;
}
.blog-sidebar-link:hover, .blog-sidebar-link.active, .blog-sidebar-link[aria-current="page"] { color: var(--blue); }
.blog-sidebar-link .count {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  background: var(--surface-2); box-shadow: var(--n-in-sm); padding: 0 10px; border-radius: 100px; line-height: 22px;
}
.blog-sidebar-link.active .count { color: var(--blue); }

.blog-tag-cloud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.blog-tag-cloud li { display: flex; align-items: center; }
.blog-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; line-height: 1.4;
  border-radius: 100px; border: none; background: var(--surface); box-shadow: var(--n-out-sm);
  color: var(--ink-dim); font-size: 12.5px; transition: all 0.25s; text-decoration: none;
}
.blog-tag:hover { color: var(--blue); box-shadow: var(--n-out); }
.blog-tag.active, .blog-tag[aria-current="page"] { box-shadow: var(--n-in-sm); color: var(--blue); }
.blog-tag .tag-count { font-size: 10px; opacity: 0.65; }

.search-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.search-form input[type="search"] {
  flex: 1 1 220px; min-width: 0; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: none; box-shadow: var(--n-in-sm); border-radius: 100px; padding: 12px 20px;
  transition: box-shadow 0.2s var(--ease);
}
.search-form input[type="search"]::placeholder { color: var(--ink-faint); }
.search-form input[type="search"]:focus { outline: none; box-shadow: var(--n-in), 0 0 0 3px var(--blue-bg); }
.search-form .btn { flex-shrink: 0; }

.mini-post { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; }
.mini-post .mini-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.mini-post .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post h4 { font-size: 13.5px; line-height: 1.6; font-weight: 600; color: var(--ink-dim); transition: color 0.25s; }
.mini-post:hover h4 { color: var(--blue); }
.mini-post .mini-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; }

/* ============================================
   BOTTOM NAV — mobile
   ============================================ */
.bottom-nav { display: none; }

/* ============================================
   SERVICE DETAIL ICON MOTION
   ============================================ */
.service-detail-icon { animation: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1180px) {
  .container { padding: 0 24px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { height: 440px; order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .trust-item { border-inline-start: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { min-height: 400px; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .process-track::before { display: none; }
  .t-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-box { padding: 36px; }
  .content-wrapper { grid-template-columns: 1fr 240px; gap: 30px; }
  .blog-grid { grid-template-columns: 1fr 280px; gap: 28px; }
  .service-detail-grid,
  .project-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle, nav.main-nav { display: none !important; }
  .header-cta .btn-ghost { display: none; }
  header .container { gap: 12px; }

  .bottom-nav {
    display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 100;
    justify-content: space-around;
    background: rgba(var(--void-rgb), 0.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px -14px var(--shadow-dark), 0 -1px 0 var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 9px 4px 8px; color: var(--ink-faint); font-size: 11px; transition: color 0.25s var(--ease);
  }
  .bottom-nav a svg { width: 22px; height: 22px; flex-shrink: 0; }
  .bottom-nav a[aria-current="page"] { color: var(--blue); }

  body { padding-bottom: 62px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 122px 0 66px; }
  .hero-sub { font-size: 16px; }
  .hero-points { gap: 10px 16px; }
  .hero-points li { font-size: 13.5px; }
  .trust { padding: 40px 0; }
  .services { padding: 74px 0 64px; }
  .services-grid, .services-grid-inner { grid-template-columns: 1fr; gap: 16px; }
  .s-card, .service-card__link { padding: 24px 22px; }
  .why { padding: 64px 0; }
  .why-item { padding: 16px 2px; }
  .portfolio { padding: 64px 0; }
  .p-grid { grid-template-columns: 1fr; gap: 16px; }
  .seo-content { padding: 56px 0; }
  .seo-box { padding: 30px 24px; }
  .process { padding: 64px 0; }
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .testimonials { padding: 64px 0; }
  .t-grid { grid-template-columns: 1fr; gap: 16px; }
  .faq { padding: 64px 0; }
  .final-cta { padding: 76px 0; }
  .cta-box { padding: 50px 24px; }
  .section-head { margin-bottom: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .post-header { padding: 116px 0 28px; }
  .post-meta-top { font-size: 12px; gap: 6px; }
  .post-excerpt { font-size: 15px; }
  .content-wrapper { grid-template-columns: 1fr; gap: 36px; }
  .post-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
  .post-article { font-size: 15px; }
  .post-article h1 { font-size: 25px; }
  .post-article h2 { font-size: 21px; }
  .post-article h3 { font-size: 17.5px; }
  .post-article h4 { font-size: 15.5px; }
  .related-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .bottom-cta .cta-box { padding: 36px 22px; }

  .page-header { padding: 116px 0 30px; }
  .messages-wrap { padding-top: 90px; }
  .detail-head { padding: 114px 0 36px; }
  .blog-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .blog-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .blog-featured-grid { grid-template-columns: 1fr; }
  .blog-post-card--featured .blog-post-body h3 { font-size: 17px; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; justify-content: center; }
  .contact-info, .contact-form { padding: 26px 20px; }
  .contact-map { aspect-ratio: 4 / 3; }
  .about-box { padding: 26px 20px; }
  .about-cta { padding: 36px 22px; }
}

@media (max-width: 640px) {
  .hero-visual { height: 380px; max-width: 440px; }
  .r3 { width: 320px; height: 320px; }
  .r2 { width: 250px; height: 250px; }
  .r1 { width: 170px; height: 170px; }
  .orbit-core { width: 88px; height: 88px; }
  .orbit-core span { font-size: 12px; }
  .orbit-node { font-size: 11.5px; padding: 7px 12px; }
  .float-card { padding: 13px 15px; }
  .float-card.card-a { width: 160px; }
  .float-card.card-b { width: 180px; }
  .mock-score { font-size: 21px; }
}

@media (max-width: 600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .why-visual { padding: 22px; min-height: auto; }
  .panel-metrics { gap: 10px; }
  .panel-metric { padding: 14px; }
  .panel-metric b { font-size: 19px; }
  .p-thumb { height: 170px; }
  .faq-q { padding: 16px 18px; font-size: 14.5px; }
  .faq-a p { padding: 0 18px 18px; font-size: 14px; }
  .post-sidebar { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  header { padding: 14px 0; }
  header.scrolled { padding: 10px 0; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .header-cta { gap: 8px; }
  .header-cta .btn-primary { padding: 10px 16px; font-size: 13px; }
  .theme-toggle, .nav-toggle { width: 36px; height: 36px; }

  .hero { padding: 106px 0 56px; }
  .eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 14px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }

  .hero-visual { height: 300px; max-width: 300px; }
  .r3 { width: 230px; height: 230px; }
  .r2 { width: 175px; height: 175px; }
  .r1 { width: 125px; height: 125px; }
  .orbit-core { width: 70px; height: 70px; }
  .orbit-core span { font-size: 10px; }
  .orbit-node { font-size: 10.5px; padding: 6px 10px; }
  .n5 { display: none; }
  .float-card.card-a { top: 0; left: 2%; width: 140px; padding: 11px 13px; }
  .float-card.card-b { width: 150px; padding: 11px 13px; }
  .mock-bars { height: 36px; }
  .mock-score { font-size: 18px; }

  .trust-num { font-size: 26px; }
  .process-track { grid-template-columns: 1fr; gap: 24px; }
  .proc-step { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; row-gap: 4px; align-items: start; }
  .proc-num { grid-row: 1 / 3; margin-bottom: 0; }
  .t-card { padding: 22px 18px; }
  .seo-box { padding: 24px 18px; }
  .seo-box h2 { font-size: 21px; }

  .cta-box { padding: 40px 20px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .post-title { font-size: 24px; }
  .post-author { flex-wrap: wrap; }
  .breadcrumb { font-size: 12px; }
  .post-article blockquote { padding: 12px 16px; }
  .post-article pre { padding: 14px; font-size: 13px; }
  .post-sidebar { grid-template-columns: 1fr; gap: 16px; }
  .sidebar-widget { padding: 16px 14px; }
  .related-grid { grid-template-columns: 1fr; gap: 16px; }
  .bottom-cta .cta-box { padding: 28px 18px; }
  .share-buttons { gap: 6px; }
  .share-btn { width: 34px; height: 34px; }

  .service-icon { width: 46px; height: 46px; }
  .service-icon svg { width: 22px; height: 22px; }
  .stat-item { padding: 20px 14px; }
  .team-member { padding: 20px 16px; }
  .team-avatar { width: 60px; height: 60px; font-size: 17px; }
  .project-body, .blog-post-body { padding: 16px 16px 20px; }
  .filter-chip { padding: 8px 15px; font-size: 13px; }
  .pagination a, .pagination span { min-width: 36px; height: 36px; font-size: 13px; }

  .header-stats { flex-direction: column; gap: 12px; padding-top: 18px; }
  .header-stat { display: flex; align-items: center; justify-content: center; gap: 12px; }
  .header-stat__number { font-size: 19px; }
  .header-stat__label { font-size: 12px; margin-top: 0; }

  .filter-bar { flex-direction: column; align-items: stretch; gap: 6px; }
  .filter-bar__label { display: none; }
  .filter-chip { justify-content: center; width: 100%; }
  .result-count { font-size: 13px; }
  .empty-state { padding: 40px 16px; }
  .empty-state h2 { font-size: 18px; }

  .project-info-grid { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
  .info-item__value, .info-item__link { font-size: 13px; }
  .project-detail-top { gap: 6px; }
  .project-featured { font-size: 10px; padding: 3px 10px; }
  .tag-pill { font-size: 11px; padding: 4px 10px; }
  .technology-tag { font-size: 12px; padding: 4px 12px; }
  .technology-tag i { font-size: 14px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-caption { padding: 10px 12px; font-size: 12.5px; }

  .search-form input[type="search"] { font-size: 14px; padding: 11px 16px; }
  .blog-sidebar-widget { padding: 16px 14px; }
  .sidebar-cta { padding: 20px 16px; }
  .blog-post-body { padding: 16px 14px 18px; }
  .blog-post-body h3 { font-size: 16px; }
  .blog-post-body p { font-size: 13.5px; }
}

@media (max-width: 360px) {
  .hero-points { flex-direction: column; gap: 8px; }
  .float-card.card-b { display: none; }
  .hero-visual { height: 260px; }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 100px 0 48px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
  .hero-visual { height: 240px; order: 0; }
  .float-card { display: none; }
}