/* =====================================================
   Techila Software PTY LTD — Enterprise Stylesheet
   Desktop-first professional corporate site
===================================================== */

:root {
  --c-red: #E63946;
  --c-red-dark: #B82C38;
  --c-navy: #0F1A4A;
  --c-blue: #1E40AF;
  --c-blue-2: #3B82F6;
  --c-cyan: #06B6D4;
  --c-text: #1F2937;
  --c-muted: #64748B;
  --c-line: #E2E8F0;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-bg-dark: #0B1226;

  --shadow-sm: 0 4px 14px rgba(15,26,74,0.06);
  --shadow-md: 0 10px 30px rgba(15,26,74,0.10);
  --shadow-lg: 0 24px 60px rgba(15,26,74,0.16);

  --radius: 8px;
  --radius-lg: 14px;
  --container: 1280px;
  --header-h: 76px;
}

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

html, body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: var(--c-red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230,57,70,0.30);
}
.btn-primary:hover {
  background: var(--c-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(230,57,70,0.40);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: #fff;
  color: var(--c-navy);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--c-navy);
  color: #fff;
}
.btn-dark:hover {
  background: var(--c-blue);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.btn-ghost:hover {
  background: var(--c-navy);
  color: #fff;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ HEADER + NAV ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,26,74,0.06);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo { height: 46px; width: auto; }

.primary-nav { display: flex; align-items: center; }
.primary-nav > ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: 4px;
  transition: color .25s, background .25s;
  position: relative;
}
.primary-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px;
  bottom: 6px;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > a.active {
  color: var(--c-red);
}
.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li > a.active::after {
  transform: scaleX(1);
}

/* Chevron indicator on parent link */
.has-dropdown > a {
  display: flex !important;
  align-items: center;
  gap: 7px;
}
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.has-dropdown:hover > a::after,
.has-dropdown.open > a::after {
  transform: rotate(180deg);
}

/* Invisible bridge so cursor can travel from link to dropdown without closing */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  display: block;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  box-shadow: 0 18px 48px rgba(15,26,74,0.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 200;
}
/* Arrow pointing up to parent */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--c-line);
  border-top: 1px solid var(--c-line);
  transform: rotate(45deg);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown item with title + description */
.dropdown-menu li a {
  display: flex !important;
  flex-direction: column;
  padding: 11px 14px !important;
  border-radius: 6px;
  transition: background .18s, color .18s;
  position: relative;
  gap: 2px;
}
.dropdown-menu li a .item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.3;
  display: block;
}
.dropdown-menu li a .item-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
  line-height: 1.45;
  margin-top: 3px;
  display: block;
}
.dropdown-menu li a::after { display: none !important; }
.dropdown-menu li a:hover {
  background: var(--c-bg-alt);
}
.dropdown-menu li a:hover .item-title {
  color: var(--c-red);
}

/* Dropdown trigger link text color override when open/hover */
.has-dropdown:hover > a,
.has-dropdown.open > a {
  color: var(--c-red);
}

.header-cta { padding: 11px 22px; font-size: 12px; flex-shrink: 0; }

/* ============ HERO (shared pattern) ============ */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 90px);
  padding-bottom: 90px;
  background: linear-gradient(135deg, #0F1A4A 0%, #1E3A8A 50%, #0F1A4A 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(230,57,70,0.20), transparent 40%);
  pointer-events: none;
}
/* Background image variant — page sets --hero-bg inline */
.page-hero.has-bg {
  background-color: var(--c-navy);
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero.has-bg::before {
  background:
    linear-gradient(135deg, rgba(11,18,38,0.85) 0%, rgba(15,26,74,0.78) 50%, rgba(11,18,38,0.85) 100%);
}
.page-hero.has-bg .page-hero-grid {
  opacity: 0.45;
}
/* Decorative SVGs dim slightly when image is used (avoid busy composition) */
.page-hero.has-bg .hero-deco {
  opacity: 0.22;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.page-hero .eyebrow {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.page-hero h1 .accent { color: var(--c-red); }
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 36px;
}
.page-hero .hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* Floating code/data decoration */
.hero-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}
.hero-deco-1 { top: 18%; left: 6%; width: 120px; }
.hero-deco-2 { top: 28%; right: 8%; width: 140px; }
.hero-deco-3 { bottom: 14%; left: 12%; width: 100px; }
.hero-deco-4 { bottom: 22%; right: 6%; width: 110px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
.hero-deco { animation: floatY 6s ease-in-out infinite; }
.hero-deco-2 { animation-duration: 7s; animation-delay: -1s; }
.hero-deco-3 { animation-duration: 8s; animation-delay: -2s; }
.hero-deco-4 { animation-duration: 9s; animation-delay: -3s; }

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
  position: relative;
}
.section.alt { background: var(--c-bg-alt); }
.section.dark {
  background: var(--c-bg-dark);
  color: #fff;
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head.left { text-align: left; max-width: none; margin-bottom: 50px; }
.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-red);
  background: rgba(230,57,70,0.08);
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: var(--c-navy);
}
.section.dark .section-head h2 { color: #fff; }
.section-head h2 .accent { color: var(--c-red); }
.section-head p {
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ============ HOME: Services grid ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--c-red), var(--c-blue-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(230,57,70,0.10), rgba(30,64,175,0.10));
  color: var(--c-red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform .4s;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon {
  transform: scale(1.06) rotate(-4deg);
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.75;
}
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.service-card .service-link .arrow { transition: transform .25s; }
.service-card:hover .service-link .arrow { transform: translateX(4px); }

/* ============ HOME: Stats ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 60px 50px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: -60px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--c-line);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--c-red);
  line-height: 1;
  letter-spacing: -1.5px;
}
.stat-label {
  font-size: 13px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 10px;
}

/* ============ HOME: Case studies preview ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.case-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  overflow: hidden;
}
.case-thumb-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.case-thumb-icon {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
}
.case-thumb-icon svg { width: 80px; height: 80px; }
.case-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--c-red);
  color: #fff;
  border-radius: 4px;
}
.case-body { padding: 28px; }
.case-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 12px;
}
.case-body p {
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.7;
}
.case-meta {
  display: flex;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  color: var(--c-muted);
}
.case-meta strong { color: var(--c-navy); font-weight: 600; }

/* ============ HOME: Process ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.process-card {
  position: relative;
  padding: 36px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  transition: transform .3s, box-shadow .3s;
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.process-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(230,57,70,0.30);
}
.process-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 10px;
}
.process-card p {
  font-size: 13.5px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ============ HOME: CTA strip ============ */
.cta-strip {
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
.cta-strip-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.cta-strip p {
  margin-top: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

/* ============ SERVICES page ============ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
}
.service-detail-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.service-detail-visual svg {
  position: relative;
  width: 60%;
  height: auto;
}
.service-detail h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.service-detail h2 .num {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-red);
  letter-spacing: 2px;
  margin-right: 12px;
}
.service-detail p.lead {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 22px;
  line-height: 1.8;
}
.service-detail ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.service-detail ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--c-text);
}
.service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 8px;
  border-left: 2px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  transform: rotate(-45deg);
}

/* ============ PORTFOLIO page ============ */
.cases-list { display: grid; gap: 40px; }
.case-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: box-shadow .3s, transform .3s;
}
.case-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.case-block.reverse { grid-template-columns: 1fr 1.3fr; }
.case-block.reverse .case-visual { order: 2; }
.case-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.case-visual svg { position: relative; width: 50%; color: rgba(255,255,255,0.45); }
.case-info .case-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-red);
  background: rgba(230,57,70,0.10);
  border-radius: 4px;
  margin-bottom: 14px;
}
.case-info h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.case-info p {
  color: var(--c-muted);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.case-stack span {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-blue);
  background: rgba(30,64,175,0.08);
  border-radius: 100px;
}
.case-outcome {
  display: flex;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
.case-outcome-item .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-red);
  line-height: 1;
}
.case-outcome-item .lbl {
  font-size: 12px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============ TECHNOLOGY page ============ */
.tech-group {
  margin-bottom: 60px;
}
.tech-group:last-child { margin-bottom: 0; }
.tech-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--c-line);
}
.tech-group-head h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: -0.3px;
}
.tech-group-head .count {
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-red);
  background: rgba(230,57,70,0.10);
  border-radius: 100px;
}
.tech-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tech-tile {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: default;
}
.tech-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--c-red);
}
.tech-tile .logo {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center; justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.tech-tile .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
}

/* ============ ABOUT page ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.about-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 30px 0 14px;
}
.about-content p {
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-facts {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.about-facts h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}
.fact-row:last-child { border-bottom: 0; }
.fact-row .label {
  font-size: 13px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.fact-row .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-navy);
  text-align: right;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform .3s, box-shadow .3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value-card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(230,57,70,0.12), rgba(30,64,175,0.12));
  color: var(--c-red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-card .icon svg { width: 24px; height: 24px; }
.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 10px;
}
.value-card p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.75;
}

/* ============ CONTACT page ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 8px;
}
.contact-form p.form-intro {
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-group label .req { color: var(--c-red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  transition: border-color .2s, background .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-red);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  letter-spacing: 0.8px;
  margin-top: 8px;
}

.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.info-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--c-red);
}
.info-card .icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(230,57,70,0.25);
}
.info-card .icon svg { width: 22px; height: 22px; }
.info-card .body h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.info-card .body p {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .foot-logo {
  height: 50px;
  width: auto;
  margin-bottom: 18px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 6px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-col ul li {
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-col ul li a:hover { color: var(--c-red); }
.footer-col .info-line {
  display: flex; gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.footer-col .info-line .ico {
  color: var(--c-red);
  flex-shrink: 0;
  font-weight: 700;
  width: 18px;
}

.copyright {
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.copyright .container {
  display: flex; justify-content: space-between; align-items: center;
}
.copyright .legal { display: flex; gap: 24px; }
.copyright .legal a:hover { color: var(--c-red); }

/* ============ PAGE-SPECIFIC HELPERS ============ */
.page-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 20px;
}
.page-section-head h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: -0.5px;
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ============ LOADING OVERLAY ============ */
.page-loader {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
.page-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader .ring {
  width: 48px; height: 48px;
  border: 3px solid var(--c-line);
  border-top-color: var(--c-red);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ BASIC RESPONSIVE (tablet/mobile fallback) ============ */
@media (max-width: 1100px) {
  .services-grid, .stats-row, .process-grid, .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-tiles { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .hero-inner, .two-col, .service-detail, .case-block, .about-grid, .contact-grid {
    grid-template-columns: 1fr; gap: 30px;
  }
  .service-detail.reverse, .case-block.reverse { direction: ltr; }
  .service-detail.reverse > *, .case-block.reverse > * { order: initial; }
  .cases-grid, .services-grid, .stats-row, .process-grid, .values-grid {
    grid-template-columns: 1fr;
  }
  .tech-tiles { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .copyright .container { flex-direction: column; gap: 10px; }
  .cta-strip-inner { flex-direction: column; text-align: center; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* =====================================================
   HOMEPAGE — UNIQUE LAYOUT & ANIMATIONS
===================================================== */

/* Live deployment ticker — animated status strip */
.deploy-ticker {
  background: var(--c-bg-dark);
  color: #fff;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}
.deploy-ticker::before, .deploy-ticker::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 200px;
  z-index: 2;
  pointer-events: none;
}
.deploy-ticker::before { left: 0; background: linear-gradient(90deg, var(--c-bg-dark), transparent); }
.deploy-ticker::after { right: 0; background: linear-gradient(-90deg, var(--c-bg-dark), transparent); }
.deploy-ticker-label {
  position: absolute; left: 32px; top: 50%; transform: translateY(-50%);
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--c-red);
}
.deploy-ticker-label .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 0 rgba(230,57,70,0.7);
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(230,57,70,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}
.deploy-ticker-track {
  display: flex;
  gap: 50px;
  padding-left: 240px;
  animation: tickerSlide 50s linear infinite;
  white-space: nowrap;
}
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.deploy-ticker-track .item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.deploy-ticker-track .item .tag {
  padding: 2px 8px;
  background: rgba(34,197,94,0.18);
  color: #4ADE80;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.deploy-ticker-track .item .tag.blue { background: rgba(59,130,246,0.18); color: #60A5FA; }
.deploy-ticker-track .item .tag.amber { background: rgba(245,158,11,0.18); color: #FCD34D; }
.deploy-ticker-track .item .name { color: #fff; font-weight: 600; }

/* Industries grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.industry-tile {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.industry-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-red);
}
.industry-tile .icon {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-red);
}
.industry-tile .icon svg { width: 100%; height: 100%; }
.industry-tile .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
}
.industry-tile .count {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.5px;
}

/* Tech stack marquee on home */
.tech-marquee {
  background: var(--c-bg-alt);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}
.tech-marquee-track {
  display: flex;
  gap: 60px;
  animation: tickerSlide 40s linear infinite;
}
.tech-marquee .pill {
  flex-shrink: 0;
  padding: 12px 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  white-space: nowrap;
}
.tech-marquee .pill .accent { color: var(--c-red); margin-right: 6px; }

/* Code terminal in hero (homepage unique element) */
.hero-terminal {
  position: relative;
  width: 420px;
  margin-top: 40px;
  background: rgba(11,18,38,0.85);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
  backdrop-filter: blur(10px);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  text-align: left;
  overflow: hidden;
}
.hero-terminal-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-terminal-header .dot { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.hero-terminal-header .dot:nth-child(2) { background: #FEBC2E; }
.hero-terminal-header .dot:nth-child(3) { background: #28C840; }
.hero-terminal-header .label {
  margin-left: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}
.hero-terminal-body {
  padding: 18px 20px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  min-height: 220px;
}
.hero-terminal-body .ln { display: block; }
.hero-terminal-body .c1 { color: #7DD3FC; }   /* blue keyword */
.hero-terminal-body .c2 { color: #FCA5A5; }   /* red string */
.hero-terminal-body .c3 { color: #86EFAC; }   /* green comment */
.hero-terminal-body .c4 { color: #FCD34D; }   /* yellow var */
.hero-terminal-body .cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--c-red);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Morphing hero illustration (large background SVG that animates) */
.hero-morph {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: 0.55;
}
.hero-morph svg {
  width: 100%;
  height: 100%;
  animation: morphSpin 60s linear infinite;
}
@keyframes morphSpin {
  to { transform: rotate(360deg); }
}

/* Stats — homepage contrast tweak */
.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
.home-hero-stats .stat .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--c-red);
  letter-spacing: -1px;
  line-height: 1;
}
.home-hero-stats .stat .lbl {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* =====================================================
   PROJECT DETAIL PAGE
===================================================== */
.project-hero-meta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.project-hero-meta span {
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.project-hero-meta span strong { color: #fff; }

.project-overview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 80px;
}
.project-overview .lead-text {
  font-size: 18px;
  line-height: 1.85;
  color: var(--c-text);
  font-weight: 400;
}
.project-facts {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: fit-content;
}
.project-facts h4 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}
.project-facts .fact {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
}
.project-facts .fact:last-child { border-bottom: 0; }
.project-facts .fact .l { color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; }
.project-facts .fact .v { color: var(--c-navy); font-weight: 600; text-align: right; }

.project-section {
  margin-top: 80px;
}
.project-section h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.project-section h2 .num {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(230,57,70,0.25);
}
.project-section p { color: var(--c-text); font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.project-section ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 18px;
}
.project-section ul li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.7;
}
.project-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 8px;
  border-left: 2px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  transform: rotate(-45deg);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.project-gallery .g-main, .project-gallery .g-side {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  border: 1px solid var(--c-line);
}
.project-gallery .g-main::before, .project-gallery .g-side::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.project-gallery .g-side { aspect-ratio: 4/3; }
.project-gallery .g-caption {
  position: absolute; bottom: 14px; left: 14px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.4);
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.project-gallery svg { width: 30%; position: relative; z-index: 1; }
.project-gallery .g-side svg { width: 50%; }

.project-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.project-result {
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
}
.project-result .num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
}
.project-result .lbl {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.project-quote {
  background: var(--c-bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  margin-top: 60px;
  position: relative;
}
.project-quote::before {
  content: '"';
  position: absolute;
  top: -20px; left: 30px;
  font-size: 130px;
  color: var(--c-red);
  font-family: Georgia, serif;
  line-height: 1;
}
.project-quote blockquote {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: rgba(255,255,255,0.92);
  max-width: 800px;
}
.project-quote .attrib {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.project-tech {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
}
.project-tech span {
  padding: 7px 16px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-navy);
}

/* =====================================================
   INSIGHTS / NEWS LIST PAGE
===================================================== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.insight-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.insight-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  position: relative;
  overflow: hidden;
}
.insight-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.insight-thumb svg { position: absolute; inset: 0; margin: auto; width: 30%; color: rgba(255,255,255,0.5); }
.insight-meta {
  position: absolute;
  bottom: 14px; left: 14px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.5);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}
.insight-body {
  padding: 28px 26px;
}
.insight-body .tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-red);
  background: rgba(230,57,70,0.10);
  border-radius: 4px;
  margin-bottom: 12px;
}
.insight-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.insight-body p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.insight-body .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.insight-body .read-more .arrow { transition: transform .25s; display: inline-block; margin-left: 4px; }
.insight-card:hover .read-more .arrow { transform: translateX(4px); }

.insight-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  transition: transform .3s, box-shadow .3s;
}
.insight-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.insight-featured .thumb {
  aspect-ratio: auto;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.insight-featured .thumb::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.insight-featured .thumb svg { position: absolute; inset: 0; margin: auto; width: 28%; color: rgba(255,255,255,0.5); }
.insight-featured .body {
  padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.insight-featured .tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-red);
  background: rgba(230,57,70,0.10);
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}
.insight-featured h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.insight-featured p {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

/* =====================================================
   INSIGHT ARTICLE DETAIL
===================================================== */
.article-hero {
  position: relative;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 50px;
  border: 1px solid var(--c-line);
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.article-hero svg {
  position: absolute;
  inset: 0; margin: auto;
  width: 22%;
  color: rgba(255,255,255,0.4);
}
.article-hero .stamp {
  position: absolute;
  bottom: 24px; left: 30px;
  display: flex; gap: 14px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.article-hero .stamp span {
  padding: 5px 12px;
  background: rgba(0,0,0,0.45);
  border-radius: 4px;
}

.article-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}
.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
}
.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 50px 0 20px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 36px 0 14px;
}
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 18px 0 24px 22px; }
.article-content ul li, .article-content ol li {
  margin-bottom: 10px;
  list-style: disc;
}
.article-content ol li { list-style: decimal; }
.article-content blockquote {
  margin: 30px 0;
  padding: 24px 30px;
  border-left: 4px solid var(--c-red);
  background: var(--c-bg-alt);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 17px;
  color: var(--c-navy);
  line-height: 1.7;
}
.article-content blockquote strong { color: var(--c-red); font-style: normal; }
.article-content code {
  font-family: 'Courier New', monospace;
  background: var(--c-bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--c-red);
}

.article-sidebar {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.article-sidebar h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}
.article-sidebar ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  line-height: 1.5;
}
.article-sidebar ul li:last-child { border-bottom: 0; }
.article-sidebar ul li a {
  color: var(--c-navy);
  font-weight: 600;
  display: block;
  transition: color .2s;
}
.article-sidebar ul li a:hover { color: var(--c-red); }
.article-sidebar .toc-num {
  display: inline-block;
  width: 22px;
  color: var(--c-muted);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  margin-right: 6px;
}

.article-cta {
  margin-top: 50px;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px;
}
.article-cta h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.article-cta p {
  margin-top: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
}

/* =====================================================
   QUOTE PAGE — PROCESS + FORM
===================================================== */
.quote-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.quote-step {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.quote-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote-step .step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(230,57,70,0.25);
}
.quote-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 10px;
}
.quote-step p {
  font-size: 13.5px;
  color: var(--c-muted);
  line-height: 1.7;
}
.quote-step .step-time {
  position: absolute;
  top: 24px; right: 24px;
  padding: 3px 10px;
  background: rgba(30,64,175,0.08);
  color: var(--c-blue);
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quote-form-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
}
.quote-form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-sm);
}
.quote-form h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 8px;
}
.quote-form p.intro {
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.quote-sidebar {
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.quote-sidebar h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 18px;
}
.quote-sidebar .include-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 13.5px;
  color: var(--c-text);
  line-height: 1.6;
}
.quote-sidebar .include-list li:last-child { border-bottom: 0; }
.quote-sidebar .include-list li .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.pricing-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 60px 0;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--c-red);
  border-width: 2px;
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured::before {
  content: 'Most Common';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--c-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
}
.pricing-card .range {
  font-size: 30px;
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -1px;
}
.pricing-card .range .from {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.pricing-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 14px 0 6px;
}
.pricing-card .desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.pricing-card ul {
  text-align: left;
  margin: 18px 0;
}
.pricing-card ul li {
  font-size: 13px;
  padding: 5px 0;
  padding-left: 22px;
  position: relative;
  color: var(--c-text);
}
.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 5px;
  color: var(--c-red);
  font-weight: 700;
}

/* =====================================================
   LEGAL PAGES (Privacy / Terms)
===================================================== */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 0;
}
.legal-page h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 50px 0 18px;
  letter-spacing: -0.5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}
.legal-page h2:first-child { margin-top: 0; }
.legal-page h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 32px 0 12px;
}
.legal-page p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text);
  margin-bottom: 16px;
}
.legal-page ul {
  margin: 14px 0 22px 22px;
}
.legal-page ul li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-text);
  margin-bottom: 8px;
  list-style: disc;
}
.legal-page .legal-meta {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 40px;
  display: flex; gap: 30px; flex-wrap: wrap;
}
.legal-page .legal-meta strong { color: var(--c-navy); }
.legal-page .legal-contact {
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  color: #fff;
  border-radius: var(--radius-lg);
}
.legal-page .legal-contact h3 { color: #fff; margin-top: 0; }
.legal-page .legal-contact p { color: rgba(255,255,255,0.85); }

/* =====================================================
   RESPONSIVE — extend for new sections
===================================================== */
@media (max-width: 1100px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-process, .project-results, .pricing-teaser { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-form-wrap { grid-template-columns: 1fr; }
  .project-overview, .article-body, .insight-featured, .project-gallery { grid-template-columns: 1fr; gap: 30px; }
  .home-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .insights-grid, .industries-grid, .quote-process, .project-results, .pricing-teaser { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .hero-terminal, .hero-morph { display: none; }
  .project-section ul { grid-template-columns: 1fr; }
  .quote-form, .legal-page { padding: 30px 20px; }
  .article-cta { flex-direction: column; text-align: center; padding: 30px 20px; }
}

/* =====================================================
   IMAGE SLOTS — photos land in img/ later; until then the
   gradient + grid placeholder renders as a designed block
===================================================== */
.img-slot { position: relative; }
.img-slot > img.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.img-slot:hover > img.photo { transform: scale(1.05); }
.img-slot > img.photo ~ .ph { display: none; }
.img-slot > .ph {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28%;
  height: auto;
  color: rgba(255,255,255,0.45);
  z-index: 2;
}
.project-gallery .g-main.img-slot > .ph,
.project-gallery .g-side.img-slot > .ph { width: 26%; }
.insight-featured .thumb.img-slot > .ph { width: 22%; }
.article-hero.img-slot > .ph { width: 16%; }
.project-quote.img-slot > .ph { display: none; }

/* =====================================================
   HOMEPAGE — extra signature motion
===================================================== */
.hero-terminal { margin-left: auto; margin-right: auto; }
.hero-terminal-body .ln { opacity: 0; animation: termLine .55s ease forwards; }
.hero-terminal-body .ln:nth-child(1) { animation-delay: .35s; }
.hero-terminal-body .ln:nth-child(2) { animation-delay: .75s; }
.hero-terminal-body .ln:nth-child(3) { animation-delay: 1.15s; }
.hero-terminal-body .ln:nth-child(4) { animation-delay: 1.55s; }
.hero-terminal-body .ln:nth-child(5) { animation-delay: 1.95s; }
.hero-terminal-body .ln:nth-child(6) { animation-delay: 2.35s; }
.hero-terminal-body .ln:nth-child(7) { animation-delay: 2.75s; }
.hero-terminal-body .ln:nth-child(8) { animation-delay: 3.15s; }
@keyframes termLine {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Orbiting capability cluster — homepage signature graphic */
.orbit-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
.orbit-visual .ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(15,26,74,0.16);
  border-radius: 50%;
  animation: orbitSpin 46s linear infinite;
}
.orbit-visual .ring.r2 { inset: 12%; animation-duration: 34s; animation-direction: reverse; }
.orbit-visual .ring.r3 { inset: 25%; animation-duration: 26s; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbit-visual .core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
  box-shadow: 0 18px 40px rgba(230,57,70,0.28);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}
.orbit-visual .node {
  position: absolute;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-navy);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.orbit-visual .node.n1 { top: 4%;  left: 50%; transform: translateX(-50%); }
.orbit-visual .node.n2 { top: 26%; right: -2%; }
.orbit-visual .node.n3 { bottom: 22%; right: 4%; }
.orbit-visual .node.n4 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.orbit-visual .node.n5 { bottom: 24%; left: -2%; }
.orbit-visual .node.n6 { top: 28%; left: 0%; }

/* Animated delivery pipeline rail */
.pipeline-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.pipeline-rail::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-red), var(--c-blue-2), var(--c-red));
  opacity: 0.25;
}
.pipeline-rail::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 8%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 6px rgba(230,57,70,0.16);
  animation: railRun 9s linear infinite;
}
@keyframes railRun {
  from { left: 8%; }
  to   { left: 92%; }
}
.pipeline-rail .stage { position: relative; z-index: 2; text-align: center; }
.pipeline-rail .dot {
  width: 42px; height: 42px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--c-navy);
}
.pipeline-rail .stage:nth-child(1) .dot,
.pipeline-rail .stage:nth-child(3) .dot,
.pipeline-rail .stage:nth-child(5) .dot { border-color: var(--c-red); color: var(--c-red); }
.pipeline-rail .lbl { font-size: 13px; font-weight: 600; color: var(--c-navy); }
.pipeline-rail .sub { font-size: 11.5px; color: var(--c-muted); margin-top: 4px; }

@media (max-width: 1100px) {
  .pipeline-rail { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .pipeline-rail::before, .pipeline-rail::after { display: none; }
}
@media (max-width: 760px) {
  .pipeline-rail { grid-template-columns: repeat(2, 1fr); }
  .orbit-visual .node { font-size: 11px; padding: 6px 10px; }
}

/* =====================================================
   FIXES — tag badges used inline inside card bodies
===================================================== */
.case-card { position: relative; }
.case-body > .case-tag,
.case-info > .case-tag {
  position: static;
  display: inline-block;
  color: var(--c-red);
  background: rgba(230,57,70,0.10);
  font-weight: 600;
  letter-spacing: 1.2px;
}
