/*
Theme Name: Pinnacle Structural Engineering
Theme URI: https://pinnaclestructuralengineering.com/
Author: Pinnacle Engineering Team
Version: 1.0.0
Description: High-performance Custom WordPress Theme for Pinnacle Structural Engineering Pvt Ltd.
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ==========================================================
   CSS VARIABLES & DESIGN SYSTEM (DARK & LIGHT THEMES)
   ========================================================== */

:root, html[data-theme="dark"] {
  --bone: #0B1622;
  --paper: #101F2C;
  --navy: #F2EFE8;
  --navy-deep: #060B11;
  --surface: #101F2C;
  --surface-hover: #172A3C;
  --gold: #C89B5C;
  --gold-light: #E4C793;
  --line: rgba(242, 239, 232, 0.14);
  --line-soft: rgba(242, 239, 232, 0.055);
  --gray: #A5A199;
  --text-main: #F2EFE8;
  --text-muted: #C6CBD2;
  --card-bg: rgba(16, 31, 44, 0.85);
  --header-bg: rgba(11, 22, 34, 0.92);
  --input-bg: #060B11;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] {
  --bone: #F7F9FC;
  --paper: #FFFFFF;
  --navy: #0F172A;
  --navy-deep: #F1F5F9;
  --surface: #E2E8F0;
  --surface-hover: #CBD5E1;
  --gold: #B48135;
  --gold-light: #8C6120;
  --line: rgba(15, 23, 42, 0.12);
  --line-soft: rgba(15, 23, 42, 0.04);
  --gray: #64748B;
  --text-main: #0F172A;
  --text-muted: #475569;
  --card-bg: rgba(255, 255, 255, 0.95);
  --header-bg: rgba(247, 249, 252, 0.92);
  --input-bg: #FFFFFF;
  --shadow-color: rgba(15, 23, 42, 0.08);
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bone);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

/* ---------- Background drafting grid ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, black 40%, transparent 90%);
}

/* ---------- Top Ticker Bar ---------- */
.top-ticker-bar {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line);
  padding: 8px 56px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 20;
}
@media (max-width: 768px) {
  .top-ticker-bar {
    display: none !important;
  }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-pulse {
  width: 7px;
  height: 7px;
  background-color: #22C55E;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22C55E;
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.badge-tag {
  background: var(--line-soft);
  border: 1px solid var(--line);
  padding: 2px 8px;
  color: var(--gold);
  border-radius: 2px;
}

/* ---------- Global Header & Nav ---------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 56px;
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .nav-container { padding: 12px 16px; }
  .brand-logo img { height: 34px; }
  .brand-title { font-size: 15px; letter-spacing: 0.03em; }
  .brand-subtitle { font-size: 8px; letter-spacing: 0.06em; margin-top: 2px; }
  .nav-actions { gap: 8px; }
  .theme-toggle-btn { padding: 7px 10px; font-size: 10px; }
  .nav-cta { display: none; }
  .mobile-menu-btn { padding: 7px 10px; }
}

@media (max-width: 420px) {
  .brand-subtitle { display: none; }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1;
}

.brand-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
}
.nav-links a {
  position: relative;
  transition: color 0.25s ease;
  cursor: pointer;
  padding: 8px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

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

/* Theme Switcher Button */
.theme-toggle-btn {
  background: var(--line-soft);
  border: 1px solid var(--line);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  transition: all 0.25s ease;
}
.theme-toggle-btn:hover {
  background: var(--surface-hover);
  border-color: var(--gold);
  color: var(--gold);
}

.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: #060B11;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-main);
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}
@media (max-width: 990px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--bone);
  border-left: 1px solid var(--line);
  z-index: 200;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px var(--shadow-color);
}
.mobile-drawer.open {
  right: 0;
}
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}
.mobile-drawer-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-drawer-links a:hover { color: var(--gold); }

/* ---------- SPA View System ---------- */
.view-section {
  display: none;
  min-height: calc(100vh - 200px);
}
.view-section.active-view {
  display: block;
  animation: fadeInView 0.4s ease forwards;
}
@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 50px 56px 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 30px 20px 60px; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
}
.headline .solid {
  display: block;
  color: var(--text-main);
}
.headline .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-main);
  text-stroke: 1.5px var(--text-main);
  position: relative;
}
.headline .outline::after {
  content: '';
  position: absolute;
  left: 2px;
  bottom: 6px;
  width: 68%;
  height: 3px;
  background: var(--gold);
}
@media (max-width: 768px) {
  .headline .outline::after {
    display: none !important;
  }
}

.sub {
  margin-top: 28px;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: #060B11;
  font-weight: 600;
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease, background 0.25s ease;
  border: 1px solid var(--gold);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  background: var(--line-soft);
  border: 1px solid var(--line);
  padding: 14px 24px;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--surface-hover);
}

/* Hero CAD Visualizer Container */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 540px;
  cursor: crosshair;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-color);
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  mix-blend-mode: luminosity;
  filter: contrast(1.2);
}

.frame-line {
  stroke: var(--text-main);
  stroke-width: 1.6;
  fill: none;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
.brace-line {
  stroke: var(--gold);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: draw 1.4s cubic-bezier(0.6, 0, 0.2, 1) forwards;
  animation-delay: 1.9s;
}
.node {
  fill: var(--gold);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 2.4s;
}
.dim-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  fill: var(--gray);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 2.6s;
}
.dim-line {
  stroke: var(--gray);
  stroke-width: 1;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 2.6s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.crosshair {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hero-visual:hover .crosshair { opacity: 1; }
.crosshair-h, .crosshair-v {
  position: absolute;
  background: var(--gold);
  opacity: 0.6;
}
.crosshair-h { width: 100%; height: 1px; }
.crosshair-v { height: 100%; width: 1px; }
.coord-readout {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #060B11;
  background: var(--gold-light);
  padding: 3px 7px;
  white-space: nowrap;
  transform: translate(12px, -22px);
  border-radius: 2px;
  font-weight: 600;
}

/* ---------- Stat Bar ---------- */
.stats {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 0 20px 50px; }
}

.stat {
  padding: 32px 24px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}
.stat-num::before, .stat-num::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: width 0.4s ease;
  height: 1px;
  width: 0;
}
.stat-num::before { top: -10px; left: 0; }
.stat-num::after { bottom: -10px; left: 0; }
.stat:hover .stat-num::before,
.stat:hover .stat-num::after { width: 100%; }

.stat-label {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Shared Section System ---------- */
.section {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 56px;
}
.section-dark {
  background: var(--navy-deep);
  color: var(--text-main);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .section { padding: 60px 20px; }
}

.doc-index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.doc-index::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  max-width: 760px;
}
.section-heading em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--text-main);
}

.section-sub {
  margin-top: 20px;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About Grid ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-list { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
}
.about-tri {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--gold);
  flex-shrink: 0;
}

.about-visual {
  position: relative;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 36px var(--shadow-color);
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 0.5s ease;
}
.about-visual:hover img {
  transform: scale(1.04);
}
.about-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 2px;
  box-shadow: 0 4px 12px var(--shadow-color);
}
.about-tag strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: var(--gold);
  margin-top: 2px;
}

/* ---------- Services Accordion & Cards ---------- */
.svc-list {
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.svc-item {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}
.svc-item:hover {
  background: var(--line-soft);
}
.svc-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  cursor: pointer;
}
.svc-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  width: 70px;
  flex-shrink: 0;
  font-weight: 600;
}
.svc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 600;
  flex: 1;
  transition: color 0.25s ease;
}
.svc-item:hover .svc-title { color: var(--gold); }
.svc-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--gray);
  transition: transform 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.svc-item.open .svc-toggle { transform: rotate(45deg); color: var(--gold); border-color: var(--gold); }
.svc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-item.open .svc-body {
  max-height: 1200px;
}
.svc-body-inner {
  padding: 0 0 32px 98px;
  max-width: 1100px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .svc-body-inner { padding: 0 0 24px 20px; }
  .svc-head { gap: 14px; }
}

/* Service Sub-item Grid */
.sub-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.sub-service-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}
.sub-service-pill:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  color: var(--gold);
}
.sub-service-pill i {
  color: var(--gold);
  flex-shrink: 0;
}

/* Dedicated Services Sector Card Grid */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 640px) {
  .sector-grid { grid-template-columns: 1fr; }
}
.sector-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.sector-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px var(--shadow-color);
}
.sector-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.sector-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.sector-card:hover .sector-img img {
  transform: scale(1.06);
}
.sector-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sector-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.sector-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
}
.sector-sublist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.sector-sublist li {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sector-sublist li::before {
  content: '▸';
  color: var(--gold);
}

/* ---------- Differentiators ---------- */
.diff-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card {
  background: var(--bone);
  padding: 36px 28px;
  transition: background-color 0.25s ease;
}
.diff-card:hover {
  background: var(--surface-hover);
}
.diff-icon { width: 36px; height: 36px; margin-bottom: 24px; }
.diff-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.diff-proof {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}
.diff-desc {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray);
}

/* ---------- Industry Pills & Software Strip ---------- */
.industry-grid {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.industry-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 14px 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text-main);
  transition: all 0.25s ease;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.industry-pill:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #060B11;
  font-weight: 600;
}

.software-strip {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.software-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray);
  opacity: 0.65;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.software-name:hover {
  opacity: 1;
  color: var(--gold);
}

/* ---------- Industry Detailed Grid ---------- */
.ind-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.ind-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}
.ind-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.ind-card-img {
  height: 180px;
  border-radius: 3px;
  overflow: hidden;
}
.ind-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ind-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
}
.ind-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Process Track ---------- */
.process-track { margin-top: 64px; position: relative; }
.process-line {
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.process-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1000px) { .process-row { grid-template-columns: repeat(4, 1fr); row-gap: 32px; } .process-line { display: none; } }
@media (max-width: 600px) { .process-row { grid-template-columns: repeat(2, 1fr); } }

.process-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bone);
  border: 1.5px solid var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.25s ease;
}
.process-step:hover .process-node {
  background: var(--gold);
  border-color: var(--gold);
  color: #060B11;
}
.process-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.process-desc { font-size: 12.5px; line-height: 1.5; color: var(--gray); }

/* ---------- Projects Grid ---------- */
.project-filter-bar {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  padding: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gold);
  color: #060B11;
  border-color: var(--gold);
  font-weight: 600;
}

.project-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.project-image {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.08);
}
.project-index {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #060B11;
  background: var(--gold);
  padding: 4px 8px;
  font-weight: 600;
  border-radius: 2px;
}
.project-meta {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}
.project-loc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gray);
  text-align: right;
  line-height: 1.4;
}

/* ---------- Testimonials ---------- */
.testimonial {
  text-align: left;
  max-width: 840px;
}
.quote-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 80px;
  color: var(--gold);
  line-height: 0.8;
  opacity: 0.6;
}
.quote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.38;
  margin-top: 12px;
}
.quote-author {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gold);
}
.quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.quote-role {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

/* ---------- Insights ---------- */
.insight-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr; } }
.insight-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.insight-card:hover { transform: translateY(-4px); }
.insight-img { height: 180px; overflow: hidden; }
.insight-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.insight-card:hover .insight-img img { transform: scale(1.05); }
.insight-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.insight-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.insight-title {
  margin-top: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.insight-date {
  margin-top: auto;
  padding-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gray);
}

/* ---------- Form & Contact Styles ---------- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  margin-top: 48px;
}
@media (max-width: 900px) { .contact-container { grid-template-columns: 1fr; } }

.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  color: var(--text-main);
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.25s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
}

.office-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.office-city {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}
.office-detail {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Final CTA Band ---------- */
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 60px;
  border-radius: 4px;
}
@media (max-width: 768px) { .cta-band { padding: 32px 24px; } }
.cta-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 640px;
}
.cta-heading .gold-word { color: var(--gold); }

/* ---------- Global Footer ---------- */
footer {
  background: var(--navy-deep);
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
}
.footer-logo img {
  height: 38px;
  width: auto;
}
.footer-tag {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 280px;
  color: var(--gray);
}
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-muted);
  transition: color 0.25s ease;
  cursor: pointer;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray);
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
}


/* Hide "Start a Project" Link Button on Mobile View */
@media (max-width: 768px) {
  a.nav-cta,
  .nav-actions a.nav-cta,
  header .nav-cta {
    display: none !important;
  }
}