/* ── Brand Tokens ── */
:root {
  --ink:        #0A1A2A;
  --indigo:     #0F2A4A;
  --steel:      #5C6B7A;
  --fog:        #A8B5C2;
  --chalk:      #E8ECF0;
  --paper:      #F5F7F9;
  --white:      #FFFFFF;
  --accent:     #3D7AB8;
  --safety:     #D4A017;
  --accent-dim: rgba(61, 122, 184, 0.15);
  --safety-dim: rgba(212, 160, 23, 0.12);
  --glow-accent: 0 0 40px rgba(61, 122, 184, 0.25);

  /* ── Semantic Theme Tokens (dark defaults) ── */
  --t-heading:      var(--white);
  --t-body:         var(--chalk);
  --t-secondary:    var(--fog);
  --t-muted:        var(--steel);
  --bg-base:        var(--ink);
  --bg-card:        rgba(10, 26, 42, 0.6);
  --bg-card-hover:  rgba(15, 42, 74, 0.7);
  --bg-elevated:    rgba(15, 42, 74, 0.4);
  --bg-metric:      rgba(10, 26, 42, 0.6);
  --bg-stat:        rgba(15, 42, 74, 0.25);
  --bg-nav:         rgba(10, 26, 42, 0.8);
  --border-base:    rgba(168, 181, 194, 0.08);
  --border-card:    rgba(168, 181, 194, 0.07);
  --border-subtle:  rgba(168, 181, 194, 0.12);
  --border-nav:     rgba(168, 181, 194, 0.06);
  --shadow-card:    0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-modal:   0 32px 80px rgba(0, 0, 0, 0.6);
}

/* ── Light Mode Token Overrides ── */
[data-theme="light"] {
  --t-heading:      var(--ink);
  --t-body:         var(--ink);
  --t-secondary:    var(--steel);
  --t-muted:        var(--steel);
  --bg-base:        var(--paper);
  --bg-card:        var(--white);
  --bg-card-hover:  var(--chalk);
  --bg-elevated:    var(--white);
  --bg-metric:      var(--paper);
  --bg-stat:        var(--white);
  --bg-nav:         rgba(255, 255, 255, 0.92);
  --border-base:    rgba(10, 26, 42, 0.07);
  --border-card:    rgba(10, 26, 42, 0.06);
  --border-subtle:  rgba(10, 26, 42, 0.1);
  --border-nav:     rgba(10, 26, 42, 0.08);
  --shadow-card:    0 4px 24px rgba(10, 26, 42, 0.08);
  --shadow-modal:   0 16px 64px rgba(10, 26, 42, 0.14);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', 'Noto Sans Georgian', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--t-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ── Georgian Script Adjustments ── */
html[lang="ka"] body {
  font-family: 'Noto Sans Georgian', 'Outfit', system-ui, sans-serif;
}
html[lang="ka"] .hero-heading,
html[lang="ka"] .section-heading,
html[lang="ka"] .cta-heading,
html[lang="ka"] .service-title,
html[lang="ka"] .step-title,
html[lang="ka"] .expertise-title,
html[lang="ka"] .project-title,
html[lang="ka"] .nav-links a,
html[lang="ka"] .btn-primary,
html[lang="ka"] .btn-ghost,
html[lang="ka"] .footer-col-title {
  font-family: 'Noto Sans Georgian', 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}
html[lang="ka"] .hero-heading    { font-size: clamp(26px, 3vw, 42px); line-height: 1.15; }
html[lang="ka"] .section-heading { font-size: clamp(22px, 2.6vw, 34px); }
html[lang="ka"] .cta-heading     { font-size: clamp(22px, 2.6vw, 34px); }
html[lang="ka"] .service-title   { font-size: 15px; }
html[lang="ka"] .service-desc    { font-size: 13px; }
html[lang="ka"] .step-title      { font-size: 14px; }
html[lang="ka"] .step-desc       { font-size: 12px; }
html[lang="ka"] .project-title   { font-size: 15px; }
html[lang="ka"] .project-desc    { font-size: 12.5px; }
html[lang="ka"] .hero-sub        { font-size: 15px; }
html[lang="ka"] .section-sub     { font-size: 15px; }
html[lang="ka"] .cta-sub         { font-size: 15px; }
html[lang="ka"] .expertise-item  { font-size: 12.5px; }
html[lang="ka"] .nav-links a     { font-size: 12px; }
html[lang="ka"] .footer-brand-desc { font-size: 12.5px; }
html[lang="ka"] .footer-links a  { font-size: 12.5px; }
html[lang="ka"] .stat-desc       { font-size: 11px; }

html[lang="ka"] .section-eyebrow,
html[lang="ka"] .schematic-label,
html[lang="ka"] .hero-badge,
html[lang="ka"] .service-tag,
html[lang="ka"] .metric-label,
html[lang="ka"] .status-row .label,
html[lang="ka"] .trust-label,
html[lang="ka"] .project-link-all,
html[lang="ka"] .footer-copyright {
  font-family: 'Noto Sans Georgian', 'JetBrains Mono', monospace;
  letter-spacing: 0.01em;
}
html[lang="ka"] .section-eyebrow  { font-size: 10px; }
html[lang="ka"] .metric-label     { font-size: 10px; }
html[lang="ka"] .hero-badge       { font-size: 10px; }
html[lang="ka"] .service-tag      { font-size: 9px; }
html[lang="ka"] .schematic-label  { font-size: 9px; }

/* ── Circuit Background ── */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.circuit-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.055;
}

/* ── Grain Texture ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── Global Radial Glow ── */
.global-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(61, 122, 184, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 110%, rgba(212, 160, 23, 0.06)  0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 50%  50%, rgba(15,  42,  74, 0.4)   0%, transparent 70%);
}

/* ── Layout ── */
.wrapper   { position: relative; z-index: 2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-nav);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  color: var(--t-heading);
}
.nav-wordmark .thunder {
  display: inline-flex;
  align-items: center;
  padding: 0 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--t-secondary);
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--t-heading); }
.nav-cta {
  padding: 9px 22px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 4px;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: #4a8ecc !important;
  box-shadow: 0 0 20px rgba(61, 122, 184, 0.35) !important;
  color: var(--white) !important;
}
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(168, 181, 194, 0.06);
  border: 1px solid rgba(168, 181, 194, 0.12);
  border-radius: 4px;
  padding: 2px;
}
.lang-btn {
  padding: 3px 5px;
  border-radius: 3px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s, border-color 0.15s;
}
.lang-btn svg { display: block; border-radius: 1px; }
.lang-btn.active { opacity: 1; border-color: var(--accent); }
.lang-btn:not(.active):hover { opacity: 0.85; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--safety);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--safety);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--t-heading);
  margin-bottom: 24px;
}
.hero-heading .accent-line { color: var(--accent); display: block; }
.hero-heading .safety-word { color: var(--safety); }

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--t-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 44px;
}

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

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: #4a8ecc;
  box-shadow: 0 4px 24px rgba(61, 122, 184, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--chalk);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid rgba(168, 181, 194, 0.2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  border-color: rgba(168, 181, 194, 0.45);
  background: rgba(168, 181, 194, 0.05);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); }

/* ── Schematic Panel ── */
.hero-schematic { position: relative; }
.schematic-card {
  position: relative;
  background: rgba(15, 42, 74, 0.5);
  border: 1px solid rgba(61, 122, 184, 0.2);
  border-radius: 6px;
  padding: 32px;
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(61, 122, 184, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.schematic-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.schematic-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metric-cell {
  padding: 18px;
  background: var(--bg-metric);
  border: 1px solid rgba(61, 122, 184, 0.12);
  border-radius: 4px;
  transition: border-color 0.3s;
}
.metric-cell:hover { border-color: rgba(61, 122, 184, 0.3); }
.metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--t-heading);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-value span { color: var(--safety); font-size: 18px; }
.metric-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.schematic-divider {
  height: 1px;
  background: rgba(61, 122, 184, 0.12);
  margin: 20px 0;
}
.status-rows { display: flex; flex-direction: column; gap: 10px; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.status-row .label { color: var(--steel); font-family: 'JetBrains Mono', monospace; }
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.status-dot  { width: 6px; height: 6px; border-radius: 50%; }
.dot-green   { background: #4ade80; box-shadow: 0 0 8px rgba(74,  222, 128, 0.6); animation: pulse-dot 2.5s ease-in-out infinite; }
.dot-amber   { background: var(--safety); box-shadow: 0 0 8px rgba(212, 160,  23, 0.6); animation: pulse-dot 3s   ease-in-out infinite; animation-delay: 0.8s; }
.dot-blue    { background: var(--accent); box-shadow: 0 0 8px rgba(61,  122, 184, 0.6); animation: pulse-dot 2s   ease-in-out infinite; animation-delay: 0.4s; }
.dot-green-text { color: #4ade80; }
.dot-amber-text { color: var(--safety); }
.dot-blue-text  { color: var(--accent); }

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}
.scroll-indicator span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-secondary);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--fog), transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.2); }
}

/* ── Trust Bar ── */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid rgba(168, 181, 194, 0.07);
  border-bottom: 1px solid rgba(168, 181, 194, 0.07);
}
.trust-inner { display: flex; align-items: center; }
.trust-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 32px;
  border-right: 1px solid rgba(168, 181, 194, 0.12);
  margin-right: 40px;
  flex-shrink: 0;
}
.trust-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--steel);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.trust-logo:hover { opacity: 0.9; }

/* ── Section Headers ── */
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--t-heading);
  margin-bottom: 20px;
}
.section-sub { font-size: 17px; color: var(--t-secondary); max-width: 520px; line-height: 1.7; }

/* ── Services ── */
.services        { padding: 120px 0; position: relative; }
.services-header { margin-bottom: 64px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(168, 181, 194, 0.08);
  border: 1px solid rgba(168, 181, 194, 0.08);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  padding: 36px 32px;
  position: relative;
  transition: background 0.25s;
  cursor: default;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 32px; right: 32px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover          { background: var(--bg-card-hover); }
.service-card:hover::after   { opacity: 0.6; }
.service-icon  { width: 48px; height: 48px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; }
.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--t-heading);
  margin-bottom: 12px;
}
.service-desc { font-size: 14.5px; color: var(--t-muted); line-height: 1.65; }
.service-tag {
  display: inline-block;
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(61, 122, 184, 0.25);
  border-radius: 3px;
  padding: 4px 8px;
}

/* ── Process ── */
.process {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 42, 74, 0.12) 50%, transparent 100%);
  position: relative;
}
.process-header { max-width: 560px; margin-bottom: 72px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(to right, var(--accent), rgba(61, 122, 184, 0.2), var(--accent));
}
@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
}
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }

.process-step { padding: 0 24px; text-align: center; }
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(61, 122, 184, 0.3);
  background: rgba(10, 26, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.process-step:hover .step-number {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(61, 122, 184, 0.3);
}
.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--t-heading);
  margin-bottom: 10px;
}
.step-desc { font-size: 13.5px; color: var(--t-muted); line-height: 1.6; }

/* ── Stats / About ── */
.stats-section { padding: 100px 0; position: relative; }
.stats-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .stats-inner { grid-template-columns: 1fr; gap: 60px; } }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.stat-block {
  padding: 28px 24px;
  border: 1px solid var(--border-base);
  border-radius: 4px;
  background: var(--bg-stat);
  transition: border-color 0.3s, background 0.3s;
}
.stat-block:hover {
  border-color: rgba(61, 122, 184, 0.25);
  background: rgba(15, 42, 74, 0.45);
}
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 40px;
  font-weight: 600;
  color: var(--t-heading);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num em { font-style: normal; color: var(--safety); font-size: 28px; }
.stat-desc {
  font-size: 13px;
  color: var(--t-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.stats-right { position: relative; }
.expertise-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(61, 122, 184, 0.15);
  border-radius: 6px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.expertise-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--t-heading);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.expertise-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.expertise-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--t-secondary);
}
.expertise-item .name { display: flex; align-items: center; gap: 10px; }
.expertise-item .name::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.bar-track {
  width: 120px;
  height: 4px;
  background: rgba(92, 107, 122, 0.3);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent), #6aaedc);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Projects ── */
.projects { padding: 120px 0; position: relative; }
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 32px;
  flex-wrap: wrap;
}
.project-link-all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.project-link-all:hover { gap: 12px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.project-card:hover {
  border-color: rgba(61, 122, 184, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.project-img {
  height: 180px;
  background: var(--indigo);
  position: relative;
  overflow: hidden;
}
.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61, 122, 184, 0.15), rgba(212, 160, 23, 0.08));
}
.project-img-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(10, 26, 42, 0.75);
  color: var(--safety);
  border: 1px solid rgba(212, 160, 23, 0.25);
}
.project-content { padding: 24px 24px 28px; }
.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--t-heading);
  margin-bottom: 10px;
}
.project-desc { font-size: 13.5px; color: var(--t-muted); line-height: 1.6; }
.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--t-muted);
}

/* ── CTA Section ── */
.cta-section { padding: 120px 0; position: relative; }
.cta-card {
  background: linear-gradient(135deg, rgba(15, 42, 74, 0.8) 0%, rgba(10, 26, 42, 0.9) 100%);
  border: 1px solid rgba(61, 122, 184, 0.2);
  border-radius: 8px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.cta-card::after {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 122, 184, 0.12), transparent 70%);
}
.cta-card-inner { position: relative; z-index: 1; }
.cta-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--t-heading);
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 17px;
  color: var(--t-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-card { padding: 48px 24px; } }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border-base);
  padding: 64px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 580px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand-desc { font-size: 14px; color: var(--t-muted); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-secondary);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--t-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--t-heading); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-base);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--t-muted); letter-spacing: 0.04em; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(168, 181, 194, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ── Decorative Corner Brackets ── */
.bracket-card { position: relative; }
.bracket-card::before,
.bracket-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s;
}
.bracket-card::before { top: 8px;    left: 8px;  border-width: 1px 0 0 1px; }
.bracket-card::after  { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.bracket-card:hover::before,
.bracket-card:hover::after { opacity: 0.6; }

/* ── Project Card — clickable cursor ── */
.project-card[data-project] { cursor: pointer; }
.project-card[data-project]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Modal Overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 12, 22, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal Panel ── */
.modal-panel {
  position: relative;
  background: #0c1e30;
  border: 1px solid rgba(61, 122, 184, 0.18);
  border-radius: 10px;
  width: 100%;
  max-width: 1080px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(61, 122, 184, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.32s ease;
}
.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Close Button ── */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(168, 181, 194, 0.15);
  background: rgba(10, 26, 42, 0.7);
  color: var(--fog);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.modal-close:hover {
  background: rgba(61, 122, 184, 0.2);
  border-color: rgba(61, 122, 184, 0.4);
  color: var(--white);
}

/* ── Modal Body (2-col) ── */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 420px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
@media (max-width: 900px) {
  .modal-body { grid-template-columns: 1fr; overflow-y: auto; }
}

/* ── Gallery Side ── */
.modal-gallery {
  display: flex;
  flex-direction: column;
  background: #08172a;
  border-right: 1px solid rgba(61, 122, 184, 0.1);
  overflow: hidden;
}
.modal-main-img {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.modal-main-img svg,
.modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}
.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(5, 14, 24, 0.6);
  border-top: 1px solid rgba(61, 122, 184, 0.08);
  flex-shrink: 0;
}
.modal-thumb {
  width: 72px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.modal-thumb:hover { opacity: 0.8; transform: translateY(-1px); }
.modal-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}
.modal-thumb svg { width: 100%; height: 100%; display: block; }

/* ── Info Side ── */
.modal-info {
  padding: 36px 32px 32px;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 122, 184, 0.2) transparent;
}
.modal-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--safety);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 3px;
  padding: 4px 10px;
  background: rgba(212, 160, 23, 0.06);
}
.modal-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.06em;
}
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}
.modal-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 20px;
}
.modal-desc {
  font-size: 14px;
  color: var(--t-secondary);
  line-height: 1.72;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(168, 181, 194, 0.07);
}

/* ── Specs Grid ── */
.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.modal-spec {
  padding: 12px 14px;
  background: rgba(15, 42, 74, 0.35);
  border: 1px solid rgba(61, 122, 184, 0.1);
  border-radius: 4px;
  transition: border-color 0.2s;
}
.modal-spec:hover { border-color: rgba(61, 122, 184, 0.25); }
.modal-spec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.modal-spec-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ── Tech Tags ── */
.modal-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.modal-tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid rgba(61, 122, 184, 0.22);
  border-radius: 3px;
  padding: 4px 9px;
  background: rgba(61, 122, 184, 0.06);
}

/* ── CTA ── */
.modal-cta { width: 100%; justify-content: center; margin-top: auto; }

@media (max-width: 480px) {
  .modal-info { padding: 24px 20px; }
  .modal-title { font-size: 20px; }
  .modal-specs { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════ */
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--t-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-btn:hover { color: var(--t-heading); border-color: rgba(168,181,194,0.35); background: rgba(168,181,194,0.08); }

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

/* ── Gallery slide (replaces inline styles in JS) ── */
.gallery-slide {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #06111d;
}
.gallery-slide img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(4, 12, 22, 0.85));
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(168, 181, 194, 0.8);
  text-transform: uppercase;
}

/* ── Wordmark image theme switching ── */
.wordmark-svg { display: block; overflow: visible; }
[data-theme="dark"]  .wordmark-svg   { color: var(--white); }
[data-theme="light"] .wordmark-svg   { color: var(--ink); }
[data-theme="dark"]  .wordmark-light { display: none; }
[data-theme="dark"]  .wordmark-dark  { display: block; }
[data-theme="light"] .wordmark-dark  { display: none; }
[data-theme="light"] .wordmark-light { display: block; }
[data-theme="dark"]  .footer-brand .nav-logo svg:first-child { color: var(--chalk); }
[data-theme="light"] .footer-brand .nav-logo svg:first-child { color: var(--ink); }

/* ── Light mode: residual overrides not expressible via variables ── */
[data-theme="light"] body           { background: var(--paper); }
[data-theme="light"] .circuit-bg svg { opacity: 0.04; filter: invert(1) hue-rotate(180deg); }
[data-theme="light"] .grain         { opacity: 0.018; }
[data-theme="light"] .global-glow {
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(61,122,184,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 110%, rgba(212,160,23,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 50%  50%, rgba(245,247,249,0.6) 0%, transparent 70%);
}
[data-theme="light"] .services-grid {
  background: rgba(10, 26, 42, 0.05);
  border-color: rgba(10, 26, 42, 0.06);
}
[data-theme="light"] .process {
  background: linear-gradient(180deg, transparent 0%, rgba(10,26,42,0.04) 50%, transparent 100%);
}
[data-theme="light"] .step-number   { background: var(--white); border-color: rgba(61,122,184,0.25); }
[data-theme="light"] .expertise-card { box-shadow: 0 4px 24px rgba(10,26,42,0.06); }
[data-theme="light"] .project-card:hover { box-shadow: 0 8px 32px rgba(10,26,42,0.1); }
[data-theme="light"] .cta-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--chalk) 100%);
  border-color: rgba(10,26,42,0.08);
  box-shadow: 0 8px 48px rgba(10,26,42,0.08);
}
[data-theme="light"] .btn-ghost     { color: var(--ink); border-color: rgba(10,26,42,0.2); }
[data-theme="light"] .btn-ghost:hover { border-color: rgba(10,26,42,0.4); background: rgba(10,26,42,0.05); color: var(--ink); }
[data-theme="light"] .modal-overlay { background: rgba(245,247,249,0.75); }
[data-theme="light"] .modal-panel   { background: var(--white); border-color: rgba(10,26,42,0.1); }
[data-theme="light"] .modal-gallery { background: var(--paper); border-right-color: rgba(10,26,42,0.08); }
[data-theme="light"] .modal-thumbs  { background: var(--chalk); border-top-color: rgba(10,26,42,0.07); }
[data-theme="light"] .modal-close   { background: var(--chalk); border-color: rgba(10,26,42,0.1); color: var(--steel); }
[data-theme="light"] .modal-close:hover { background: rgba(61,122,184,0.08); border-color: var(--accent); color: var(--ink); }
[data-theme="light"] .modal-spec    { background: var(--paper); border-color: rgba(10,26,42,0.07); }
[data-theme="light"] .modal-desc    { border-bottom-color: rgba(10,26,42,0.07); }
[data-theme="light"] .footer-social a { border-color: rgba(10,26,42,0.1); color: var(--steel); }
[data-theme="light"] .footer-social a:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="light"] .lang-switcher { background: rgba(10,26,42,0.04); border-color: rgba(10,26,42,0.1); }
[data-theme="light"] .theme-btn:hover { background: rgba(10,26,42,0.05); }
