/* Lonestar Global Services — v7 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --nav-h: 72px;
  --max-w: 1160px;
  --r: 12px;
  --r-sm: 8px;
}

html[data-theme="light"], html:not([data-theme]) {
  color-scheme: light;
  --navy: #0c2340;
  --navy-light: #163456;
  --gold: #b8892a;
  --gold-soft: #f5eed9;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #334155;
  --heading: #0c2340;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 4px 24px rgba(12,35,64,0.08);
  --shadow-lg: 0 12px 40px rgba(12,35,64,0.12);
  --nav-bg: rgba(255,255,255,0.95);
  --hero-bg: linear-gradient(135deg, #f4f7fb 0%, #eef2f7 100%);
  --footer-bg: #071525;
  --input-bg: #fff;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #071525;
  --navy-light: #0f2744;
  --gold: #d4a843;
  --gold-soft: rgba(212,168,67,0.12);
  --bg: #0a1628;
  --bg-alt: #0f1f35;
  --surface: #122038;
  --text: #94a3b8;
  --heading: #f1f5f9;
  --muted: #64748b;
  --line: #1e3348;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  --nav-bg: rgba(10,22,40,0.95);
  --hero-bg: linear-gradient(135deg, #0a1628 0%, #0f1f35 100%);
  --footer-bg: #050f1a;
  --input-bg: #122038;
}

html.theme-transitioning, html.theme-transitioning * {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Demo proposal ribbon */
.demo-ribbon-wrap {
  position: fixed;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
  z-index: 10000;
  pointer-events: none;
}
.demo-ribbon {
  position: absolute;
  top: 34px;
  right: -42px;
  width: 210px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #d4a843 0%, #b8892a 100%);
  color: #0c2340;
  padding: 8px 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  user-select: none;
}
@media (max-width: 640px) {
  .demo-ribbon-wrap { width: 130px; height: 130px; }
  .demo-ribbon {
    top: 28px;
    right: -46px;
    width: 190px;
    font-size: 0.5625rem;
    padding: 7px 0;
  }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; }

/* Typography */
.display-xl {
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.display-lg {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--heading);
}
.display-md {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.heading-sm {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--muted); }
.text-navy { color: var(--heading); }
.text-muted { color: var(--muted); }
.text-faint { color: var(--muted); font-size: 0.9375rem; font-style: italic; }
.prose-center { font-size: 1.0625rem; line-height: 1.75; text-align: center; color: var(--text); }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-28 { margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); }
.btn-outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
html[data-theme="dark"] .btn-outline { color: var(--heading); }
html[data-theme="dark"] .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-outline-dark {
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--line);
}
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-wrap {
  display: flex;
  align-items: center;
  padding: 4px 0;
}
.nav-logo-img {
  height: 46px;
  width: auto;
  max-width: min(240px, 42vw);
  display: block;
  object-fit: contain;
}
html[data-theme="dark"] .nav-logo-wrap {
  background: rgba(255,255,255,0.96);
  padding: 6px 14px;
  border-radius: 8px;
}
.footer-logo-wrap {
  display: inline-block;
  background: rgba(255,255,255,0.96);
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--heading); background: var(--bg-alt); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
html[data-theme="dark"] .nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  transition: all 0.15s;
}
.theme-toggle:hover { color: var(--heading); border-color: var(--heading); }
.theme-icon { display: none; }
html[data-theme="light"] .theme-icon-sun,
html:not([data-theme]) .theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon { display: block; }
.nav-toggle { display: none; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--heading); margin: 5px 0; border-radius: 1px;
}

/* Hero */
.hero {
  padding: calc(var(--nav-h) + 56px) 0 80px;
  background: var(--hero-bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-desc {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 20px 0 32px;
  line-height: 1.7;
  max-width: 480px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-meta-item span { font-size: 0.8125rem; color: var(--muted); }
.hero-photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-photo:hover img { transform: scale(1.04); }
.hero-photo-accent {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.hero-content > * {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.19s; }
.hero-content > *:nth-child(4) { animation-delay: 0.26s; }
.hero-content > *:nth-child(5) { animation-delay: 0.33s; }

/* Stats band */
.stats-band {
  background: var(--navy);
  padding: 40px 0;
}
.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-band-inner strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-band-inner > div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.stats-band-inner.visible > div {
  opacity: 1;
  transform: none;
}
.stats-band-inner.visible > div:nth-child(1) { transition-delay: 0.05s; }
.stats-band-inner.visible > div:nth-child(2) { transition-delay: 0.12s; }
.stats-band-inner.visible > div:nth-child(3) { transition-delay: 0.19s; }
.stats-band-inner.visible > div:nth-child(4) { transition-delay: 0.26s; }
.stats-band-inner span { font-size: 0.8125rem; color: rgba(255,255,255,0.65); }

/* Sections */
section { padding: 88px 0; }
.section-header { max-width: 560px; margin-bottom: 48px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header p { margin-top: 14px; font-size: 1.0625rem; color: var(--muted); line-height: 1.65; }
.section-compact { padding: 56px 0; }
.section-flush-top { padding-top: 0; }
.section-header-tight { margin-bottom: 32px; }
.bg-light { background: var(--bg-alt); }
.bg-white { background: var(--bg); }
.bg-sky { background: var(--gold-soft); }

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  z-index: 1;
}
.service-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-4px); }
.service-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card-thumb img { transform: scale(1.05); }
.service-card-body { padding: 28px 32px 32px; }
.service-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
  line-height: 1.35;
}
.service-card p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 16px; line-height: 1.65; }
.service-card ul { margin-bottom: 20px; }
.service-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 6px;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.service-card .btn-outline { font-size: 0.8125rem; padding: 9px 18px; }

/* Service list (alt layout) */
.service-list { border-top: 1px solid var(--line); }
.service-list-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.service-list-item .num { font-size: 0.875rem; font-weight: 700; color: var(--gold); padding-top: 2px; }
.service-list-item h3 { font-size: 1.0625rem; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.service-list-item p { font-size: 0.9375rem; color: var(--muted); }
.service-list-item .link { font-size: 0.875rem; font-weight: 600; color: var(--navy); padding-top: 2px; }
html[data-theme="dark"] .service-list-item .link { color: var(--gold); }
.service-list-item .link:hover { text-decoration: underline; }

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}
.why-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.why-list-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.why-list-item strong { display: block; color: var(--heading); font-weight: 600; margin-bottom: 4px; }

/* Model cards */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.model-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}
.model-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.model-card-num {
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
}
.model-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.model-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.model-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.model-row > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
}
.model-row h3 { font-size: 1rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.model-row p { font-size: 0.875rem; color: var(--muted); }

/* Quote / testimonial */
.quote-block, .testimonial-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.quote-block blockquote, .testimonial-quote {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--heading);
  margin-bottom: 20px;
}
.quote-block cite, .testimonial-author {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}
.testimonial-section { background: var(--bg-alt); }
.testimonial-avatar { display: none; }

/* CTA */
.cta-banner {
  padding: 80px 0;
  background: var(--navy);
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1rem;
  line-height: 1.65;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-banner .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.cta-banner .btn-primary:hover { filter: brightness(1.08); }
.cta-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-banner .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Footer */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 0;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 14px; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { line-height: 1.65; margin-bottom: 10px; }
.footer-contact strong { color: rgba(255,255,255,0.75); font-weight: 600; }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}
.footer-tags { display: none; }

/* Page hero */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.page-hero h1, .page-hero .display-lg { margin-bottom: 14px; }
.page-hero .lead { max-width: 540px; }
.page-hero-centered .container { max-width: 680px; text-align: center; }
.page-hero-centered .lead { margin-left: auto; margin-right: auto; }
.page-hero-image {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Split / features */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-section-image, .img-frame {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.split-section-image img, .img-frame img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin: 4px 0 8px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.4;
}
.feature-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  stroke-width: 2.5;
}

/* Approach */
.approach-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.approach-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
}
.approach-step::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 14px;
}
.approach-step-img { display: none; }
.approach-step h3 { font-size: 1rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.approach-step p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* Industries */
.industry-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
}
.industry-icon { display: none; }
.industry-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--heading); margin-bottom: 14px; }
.industry-card li { position: relative; padding-left: 16px; font-size: 0.875rem; margin-bottom: 7px; color: var(--text); }
.industry-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.industry-support { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.industry-support strong { color: var(--heading); }

/* Service detail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child, .service-detail--last { border-bottom: none; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 8px;
  -webkit-text-stroke: 1px var(--gold);
  color: transparent;
}
html[data-theme="dark"] .service-detail-num { -webkit-text-stroke-color: var(--gold); }
.service-detail h2 { font-size: 1.5rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.service-detail .tagline { font-size: 0.875rem; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.service-detail p { margin-bottom: 18px; line-height: 1.65; }
.service-detail .result-box {
  padding: 18px 20px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 20px 0;
}
.service-detail .result-box strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.service-detail .result-box p { margin: 0; font-size: 0.9375rem; font-weight: 500; color: var(--heading); }
.service-visual {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.service-visual img { width: 100%; height: 100%; object-fit: cover; }
.service-visual svg { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; }
.contact-info h3 { font-size: 1.25rem; font-weight: 700; color: var(--heading); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-detail svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.contact-detail strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-detail span, .contact-detail a { font-size: 0.9375rem; color: var(--text); }
.contact-detail a:hover { color: var(--gold); }
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.form-card > p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--heading); margin-bottom: 7px; }
.form-group label .req { color: #dc2626; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--heading);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12,35,64,0.08);
}
html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus,
html[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8125rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--heading);
}
.faq-question:hover { color: var(--gold); }
.faq-question svg { flex-shrink: 0; color: var(--gold); transition: transform 0.2s; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.open .faq-answer { max-height: 280px; padding-bottom: 20px; }
.faq-answer p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

/* Careers */
.careers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.careers-image { display: none; }
.careers-list li { position: relative; padding-left: 18px; margin-bottom: 10px; font-size: 0.9375rem; }
.careers-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.careers-cta {
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
  box-shadow: var(--shadow);
}
.careers-cta h3 { font-size: 1.5rem; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.careers-cta p { color: var(--muted); margin-bottom: 24px; }

/* Service jump nav */
.service-jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.service-jump a {
  padding: 10px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all 0.15s;
}
.service-jump a:hover { color: var(--navy); border-color: var(--navy); }
html[data-theme="dark"] .service-jump a:hover { color: var(--gold); border-color: var(--gold); }

/* Photo grid */
.photo-section { overflow: hidden; }
.photo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.photo-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0;
}
.photo-card--large { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.photo-card img {
  width: 100%; height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.photo-card--large img { min-height: 420px; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(12,35,64,0.75));
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Shared photo frame */
.photo-frame {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.photo-frame:hover img { transform: scale(1.03); }

.split-section-image, .img-frame, .page-hero-image, .careers-image, .service-visual {
  transition: transform 0.25s;
}
.split-section-image:hover, .img-frame:hover, .page-hero-image:hover,
.careers-image:hover, .service-visual:hover { transform: translateY(-4px); }

.careers-image {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.careers-image img { width: 100%; height: 100%; object-fit: cover; }

.careers-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.careers-photo-row .photo-frame { aspect-ratio: 16/10; }

.contact-photo {
  margin-top: 28px;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-content > *, .hero-photo, .stats-band-inner > div {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Hide legacy junk */
.hero-grid-bg, .hero-orb, .hero-badge, .hero-image-float,
.hero-stat-card, .logo-strip, .marquee-section,
.image-banner, .service-card-image, .industry-card-image,
.service-num { display: none !important; }

/* Responsive */
@media (max-width: 960px) {
  .nav-inner { grid-template-columns: auto auto; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    z-index: 199;
    overflow-y: auto;
  }
  .hero-inner, .page-hero-grid, .split-section,
  .services-grid, .service-detail, .contact-grid, .careers-grid { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .why-grid, .model-grid, .model-row, .industry-cards,
  .approach-steps, .stats-band-inner, .feature-grid, .footer-grid,
  .why-list { grid-template-columns: 1fr; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-photo { order: -1; max-width: 520px; margin: 0 auto; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-card--large { grid-row: auto; }
  .photo-card--large img { min-height: 260px; }
  .careers-photo-row { grid-template-columns: 1fr; }
  .service-list-item { grid-template-columns: 32px 1fr; }
  .service-list-item .link { grid-column: 2; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open a { padding: 14px 12px; font-size: 1rem; }
  .stats-band-inner { grid-template-columns: 1fr 1fr; }
}
