/*
  ATLAS PROGRAMMING SOLUTIONS — Final Hybrid
  Hero: Prototype C's white split-layout hero (text left, image right)
  Everything else: Prototype A's warm editorial design
  Fonts: Cormorant (display) + Inter (body)
  Fix: Nav links always visible on white hero background
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --display: 'Cormorant', Georgia, serif;
  --body: 'Inter', -apple-system, sans-serif;
  --bg: #FAF9F6;
  --bg2: #F1EEE8;
  --white: #FFFFFF;
  --fg: #0E1117;
  --fg2: #3D4450;
  --fg3: #8A8F9A;
  --accent: #0015B0;
  --accent-h: #001080;
  --accent-soft: rgba(0,21,176,0.05);
  --primary: #4F3130;
  --gold: #B68F40;
  --border: #DDD9D0;
  --r: 14px;
  --r2: 20px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker { to { transform: translateX(-50%); } }

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }

/* ===== NAV (always dark text on white hero) ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 28px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav.scrolled {
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 38px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 12.5px; font-weight: 500; color: var(--fg3);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: var(--accent); padding: 10px 28px;
  border-radius: 100px; transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,21,176,0.2);
}
.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,21,176,0.25); }
.nav-cta:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,21,176,0.2); }

/* ===== HERO — White split layout from Prototype C ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 45%;
  align-items: center;
  background: var(--white);
  overflow: hidden;
}
.hero-content {
  padding: 160px 0 120px max(28px, calc((100vw - 1120px) / 2 + 28px));
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 28px;
}
.hero-label-line { width: 32px; height: 1px; background: var(--accent); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600; line-height: 1.05;
  color: var(--fg); margin-bottom: 28px;
  letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; color: var(--fg3); }
.hero-sub {
  font-size: 16.5px; line-height: 1.75;
  color: var(--fg2); max-width: 480px; margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { height: 100vh; overflow: hidden; }
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 12s cubic-bezier(0.16,1,0.3,1);
}
.hero-image:hover img { transform: scale(1.04); }

/* Ticker sits below hero */
.ticker {
  background: var(--fg);
  padding: 14px 0; overflow: hidden;
}
.ticker-track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.ticker-item {
  color: rgba(255,255,255,0.3);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  flex-shrink: 0;
}

/* Buttons — Prototype A style (rounded) */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: 13.5px; font-weight: 600;
  border: none; border-radius: var(--r);
  padding: 15px 32px; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 2px 12px rgba(0,21,176,0.25); }
.btn-accent:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,21,176,0.3); }
.btn-accent:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,21,176,0.2); }
.btn-outline {
  background: transparent; color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--fg); }
.btn-outline:active { transform: translateY(0); }
.btn-white { background: #fff; color: var(--fg); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.btn-white:active { transform: translateY(0); box-shadow: none; }

/* ===== TRUST BAR ===== */
.trust {
  padding: 24px 0; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
}
.trust-stat { text-align: center; }
.trust-val {
  display: block; font-family: var(--display);
  font-size: 26px; font-weight: 600;
  color: var(--fg); line-height: 1;
}
.trust-lbl {
  display: block; font-size: 10px; color: var(--fg3);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}

/* ===== SECTIONS (Prototype A style) ===== */
.s { padding: clamp(80px, 10vw, 140px) 0; }
.s-alt { background: var(--bg2); }
.s-dark { background: var(--fg); color: #fff; }
.s-primary { background: var(--primary); color: #fff; }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.label-line { width: 24px; height: 1px; background: var(--accent); display: inline-block; }
.s-dark .label { color: rgba(255,255,255,0.4); }
.s-dark .label-line { background: rgba(255,255,255,0.2); }

.s-title {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -0.015em; margin-bottom: 20px;
}
.s-desc {
  font-size: 16px; color: var(--fg2);
  line-height: 1.75; max-width: 540px;
}
.s-dark .s-desc { color: rgba(255,255,255,0.6); }
.s-dark .s-title { color: #fff; }
.s-head { margin-bottom: 72px; }
.s-head-c { text-align: center; }
.s-head-c .s-desc { margin: 0 auto; }

/* ===== GRID & NARRATIVE ===== */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.grid-2 img { border-radius: var(--r2); }
.grid-2-reverse { direction: rtl; }
.grid-2-reverse > * { direction: ltr; }

.body-text { font-size: 15px; color: var(--fg2); line-height: 1.75; margin-bottom: 16px; }

.checklist { margin-top: 24px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px; color: var(--fg2); line-height: 1.55; margin-bottom: 14px;
}
.checklist svg { flex-shrink: 0; color: var(--accent); margin-top: 3px; }

/* Stat Card */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
  max-width: 340px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card-danger::before { background: #DC2626; }
.stat-card-success::before { background: #15803d; }
.stat-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.stat-card-label { font-size: 13px; color: var(--fg3); }
.badge { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-red { background: rgba(220,38,38,0.08); color: #DC2626; }
.badge-green { background: rgba(21,128,61,0.08); color: #15803d; }
.stat-card-num { font-family: var(--display); font-size: 52px; font-weight: 600; color: var(--fg); line-height: 1; letter-spacing: -0.02em; }
.stat-card-unit { font-family: var(--body); font-size: 18px; color: var(--fg3); font-weight: 400; }
.stat-card-sub { font-size: 12px; color: var(--fg3); margin-top: 6px; }

/* ===== SERVICE BANDS ===== */
.svc-band { padding: 56px 0; border-bottom: 1px solid var(--border); }
.svc-band:last-child { border-bottom: none; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.svc-reverse { direction: rtl; }
.svc-reverse > * { direction: ltr; }
.svc-num { font-family: var(--display); font-size: 72px; font-weight: 400; color: var(--gold); line-height: 1; margin-bottom: 12px; opacity: 0.55; }
.svc-name { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.svc-text { font-size: 15px; color: var(--fg2); line-height: 1.75; margin-bottom: 24px; max-width: 420px; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); transition: gap 0.3s cubic-bezier(0.16,1,0.3,1); }
.svc-link:hover { gap: 14px; }
.svc-img { border-radius: var(--r2); overflow: hidden; aspect-ratio: 4/3; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s cubic-bezier(0.16,1,0.3,1); }
.svc-img:hover img { transform: scale(1.08); }

/* ===== SPOTLIGHT ===== */
.spotlight {
  background: linear-gradient(135deg, #1a2040 0%, #0f1528 50%, #162040 100%);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative; overflow: hidden;
}
.spotlight::before {
  content: ''; position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(77,107,255,0.1) 0%, transparent 65%);
  top: -250px; right: -200px; pointer-events: none;
}
.spotlight::after {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(182,143,64,0.08) 0%, transparent 65%);
  bottom: -150px; left: -100px; pointer-events: none;
}
.spotlight-label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; position: relative; }
.spotlight-title { font-family: var(--display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; color: #fff; margin-bottom: 16px; max-width: 580px; letter-spacing: -0.015em; line-height: 1.1; position: relative; }
.spotlight-sub { color: rgba(255,255,255,0.55); font-size: 15.5px; margin-bottom: 56px; max-width: 500px; line-height: 1.65; position: relative; }
.spotlight-cta { text-align: center; margin-top: 16px; position: relative; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); position: relative; }
.metric { text-align: center; }
.metric-val { display: block; font-family: var(--display); font-size: clamp(26px, 3vw, 38px); font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.metric-lbl { display: block; font-size: 10.5px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 8px; }

/* ===== PROCESS ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 36px 28px; text-align: center;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.step:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); transform: translateY(-4px); }
.s-dark .step { background: var(--white); border-color: rgba(255,255,255,0.15); }
.step-n { display: block; font-family: var(--display); font-size: 44px; font-weight: 400; color: var(--accent); opacity: 0.5; margin-bottom: 16px; line-height: 1; }
.step-t { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.step-d { font-size: 13.5px; color: var(--fg2); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 40px 32px;
  display: flex; flex-direction: column;
  transition: box-shadow 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.quote:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.05); transform: translateY(-3px); }
.quote-mark { font-family: var(--display); font-size: 56px; line-height: 0.8; color: var(--accent); opacity: 0.15; margin-bottom: 12px; user-select: none; }
.quote-stars { display: flex; gap: 2px; margin-bottom: 20px; }
.quote-text { font-size: 15px; color: var(--fg); line-height: 1.75; font-style: italic; margin-bottom: 28px; flex-grow: 1; }
.quote-author { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.quote-name { font-weight: 600; font-size: 14px; }
.quote-role { font-size: 12.5px; color: var(--fg3); margin-top: 2px; }

/* ===== BLOG ===== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post {
  display: block; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
}
.post:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.post-img { height: 210px; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s cubic-bezier(0.16,1,0.3,1); }
.post:hover .post-img img { transform: scale(1.1); }
.post-body { padding: 32px; }
.post-date { font-size: 10.5px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.post-title { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--fg); line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.01em; }
.post-excerpt { font-size: 15px; color: var(--fg2); line-height: 1.75; margin-bottom: 16px; }
.post-link { font-size: 12.5px; color: var(--accent); font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s cubic-bezier(0.16,1,0.3,1); }
.post-link:hover { gap: 14px; }

/* ===== FOOTER ===== */
.foot { background: var(--primary); color: #fff; }
.foot-cta { padding: 72px 0; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-cta-title { font-family: var(--display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; color: #fff; margin-bottom: 28px; letter-spacing: -0.015em; max-width: 600px; margin-left: auto; margin-right: auto; }
.foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; }
.foot-brand p { font-size: 13.5px; color: rgba(255,255,255,0.4); margin-top: 12px; line-height: 1.65; text-align: left; }
.foot-logo { height: 40px; width: auto; margin-left: -8px; }
.foot-col-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.25); margin-bottom: 20px; }
.foot-links a { display: block; font-size: 13.5px; color: var(--gold); padding: 5px 0; transition: color 0.2s; }
.foot-links a:hover { color: #dbb660; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 11.5px; color: rgba(255,255,255,0.25); }
.foot-bottom a { color: rgba(255,255,255,0.25); transition: color 0.2s; }
.foot-bottom a:hover { color: rgba(255,255,255,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 140px 28px 60px; }
  .hero-image { height: 50vh; }
  .grid-2, .grid-2-reverse,
  .svc-grid, .svc-reverse { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes, .posts { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .s { padding: 64px 0; }
}
@media (max-width: 480px) {
  .hero-content { padding: 120px 20px 48px; }
  .hero h1 { font-size: 34px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; text-align: center; }
  .trust-inner { gap: 32px; }
}

/* ==========================================================================
   INNER PAGES — Additional styles
   ========================================================================== */

/* Dark hero variant (About, Services, Case Studies, Blog, Contact) */
.hero-dark {
  position: relative; display: flex; align-items: center;
  min-height: 50vh; background-size: cover; background-position: center;
  background-color: var(--fg); overflow: hidden;
}
.hero-dark--tall { min-height: 60vh; }
.hero-dark--short { min-height: 40vh; }
.hero-dark::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(14,17,23,0.8), rgba(14,17,23,0.5));
  z-index: 1;
}
.hero-dark .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 72px; }
.hero-dark .hero-label { color: rgba(255,255,255,0.35); }
.hero-dark h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600; line-height: 1.08;
  color: #fff; letter-spacing: -0.02em; margin-bottom: 16px;
}
.hero-dark p { color: rgba(255,255,255,0.55); font-size: 16px; line-height: 1.7; max-width: 520px; }

/* Solid hero (legal pages) */
.hero-solid {
  background: var(--primary); display: flex; align-items: center;
  min-height: 40vh; text-align: center;
}
.hero-solid .wrap { padding-top: 120px; padding-bottom: 72px; }
.hero-solid h1 {
  font-family: var(--display); font-size: clamp(32px, 4vw, 52px);
  font-weight: 600; color: #fff; margin-bottom: 8px;
}
.hero-solid p { color: rgba(255,255,255,0.5); font-size: 14px; }

/* Prose (blog detail, legal pages) */
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { font-family: var(--display); font-size: 26px; font-weight: 600; margin: 48px 0 16px; color: var(--fg); }
.prose h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 40px 0 12px; color: var(--fg); }
.prose p { color: var(--fg2); line-height: 1.8; margin-bottom: 20px; font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 20px; }
.prose li { list-style: disc; color: var(--fg2); margin-bottom: 8px; line-height: 1.7; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 16px 24px; margin: 24px 0;
  font-style: italic; color: var(--fg2); background: var(--accent-soft);
  border-radius: 0 var(--r) var(--r) 0;
}
.prose .callout-block {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 24px; border-radius: 0 var(--r) var(--r) 0; margin-bottom: 32px;
}
.prose .callout-title { color: var(--accent); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

/* Card grids (case studies, services list, blog list) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: block; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s cubic-bezier(0.16,1,0.3,1); }
.card:hover .card-img img { transform: scale(1.1); }
.card-body { padding: 32px; }
.card-date { font-size: 10.5px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.card-cat { font-size: 10.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; font-weight: 600; }
.card-title { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--fg); line-height: 1.25; margin-bottom: 12px; }
.card-text { font-size: 15px; color: var(--fg2); line-height: 1.75; margin-bottom: 16px; }
.card-link { font-size: 12.5px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s cubic-bezier(0.16,1,0.3,1); }
.card-link:hover { gap: 14px; }

/* Overlay card (case studies with image bg) */
.card-overlay {
  position: relative; display: block; border-radius: var(--r2);
  overflow: hidden; min-height: 380px; height: 380px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.card-overlay:hover { transform: translateY(-4px); }
.card-overlay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s cubic-bezier(0.16,1,0.3,1); }
.card-overlay:hover img { transform: scale(1.08); }
.card-overlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); z-index: 1; }
.card-overlay-body { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 32px; }
.card-overlay-cat { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.card-overlay-title { font-family: var(--display); font-size: 22px; font-weight: 600; color: #fff; line-height: 1.2; }

/* Form styles */
.form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-label { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--fg); }
.form-req { color: #DC2626; }
.form-input, .form-select, .form-textarea {
  background: var(--bg2); border: 1px solid transparent; border-radius: var(--r);
  padding: 12px 16px; font-size: 15px; font-family: var(--body); color: var(--fg);
  transition: border-color 0.3s, box-shadow 0.3s; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-textarea { min-height: 140px; resize: vertical; }
.form-msg { padding: 16px; border-radius: var(--r); font-size: 14px; margin-top: 16px; display: none; }
.form-msg-ok { background: rgba(21,128,61,0.08); color: #15803d; }
.form-msg-err { background: rgba(220,38,38,0.08); color: #DC2626; }

/* Metrics grid (case study detail) */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 32px; border-radius: var(--r2); text-align: center;
}
.metric-card-val { display: block; font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.metric-card-label { display: block; font-weight: 600; font-size: 13px; color: var(--fg); margin-bottom: 8px; }
.metric-card-desc { font-size: 12.5px; color: var(--fg3); }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; text-align: center;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.team-card-img { height: 300px; overflow: hidden; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card-body { padding: 24px; }
.team-card-name { font-family: var(--display); font-size: 20px; font-weight: 600; }
.team-card-role { font-size: 13px; color: var(--fg3); margin-top: 4px; }

/* Values grid */
.vals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.val-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 32px; border-radius: var(--r2);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s cubic-bezier(0.16,1,0.3,1);
}
.val-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.val-card-icon {
  width: 44px; height: 44px; background: var(--accent-soft);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 20px;
}
.val-card-title { font-family: var(--display); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.val-card-text { font-size: 14px; color: var(--fg2); line-height: 1.65; }

/* Stats bar (about page) */
.stats-section {
  position: relative; padding: 80px 0;
  background-size: cover; background-position: center; background-attachment: fixed;
}
.stats-section::before { content: ''; position: absolute; inset: 0; background: rgba(14,17,23,0.75); }
.stats-section .wrap { position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats-item { text-align: center; color: #fff; }
.stats-val { display: block; font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-weight: 600; }
.stats-lbl { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 8px; }

/* Booking section */
.booking { text-align: center; margin-top: 32px; }
.booking iframe { border: 1px solid var(--border); border-radius: var(--r2); }

/* Contact info cards */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 32px; border-radius: var(--r2); text-align: center;
}
.info-card-icon {
  width: 48px; height: 48px; background: var(--accent);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff; margin: 0 auto 16px;
}
.info-card-title { font-weight: 600; margin-bottom: 4px; }
.info-card-val { font-size: 14px; color: var(--fg2); }

/* Service detail layout */
.svc-detail-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.svc-sidebar { display: flex; flex-direction: column; gap: 24px; }
.svc-sidebar-block { background: var(--bg2); padding: 24px; border-radius: var(--r); }
.svc-sidebar-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.svc-sidebar-list { display: flex; flex-direction: column; gap: 10px; }
.svc-sidebar-item { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--fg2); }
.svc-sidebar-item svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

/* Responsive additions for inner pages */
@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .svc-detail-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-dark .wrap { padding-top: 100px; }
}
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
/* ==========================================================================
   DASHBOARD WIDGETS (home page stat visualizations)
   ========================================================================== */
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 40px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.widget::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.widget-success::before { background: var(--gold); }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.widget-title { font-size: 13px; font-weight: 600; color: var(--fg); }

/* Donut chart */
.widget-donut { position: relative; width: 200px; height: 200px; margin: 0 auto 28px; }
.donut-chart { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.donut-value { display: block; font-family: var(--display); font-size: 42px; font-weight: 600; color: var(--fg); line-height: 1; }
.donut-unit { display: block; font-size: 12px; color: var(--fg3); margin-top: 2px; }

@keyframes donut-fill {
  from { stroke-dasharray: 0 314; }
}
.donut-animate { animation: donut-fill 1.5s cubic-bezier(0.16,1,0.3,1) forwards; }

/* Legend */
.widget-legend { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.widget-legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg2); }
.widget-legend-item strong { margin-left: auto; font-weight: 600; color: var(--fg); }
.widget-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Bar chart */
.widget-bars { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.widget-bar-row { display: flex; align-items: center; gap: 12px; }
.widget-bar-label { font-size: 12px; color: var(--fg3); width: 48px; flex-shrink: 0; }
.widget-bar-track { flex: 1; height: 36px; background: var(--bg2); border-radius: 8px; overflow: hidden; }
.widget-bar-fill {
  height: 100%; border-radius: 6px;
  width: 0;
}
.widget-bar-fill--danger { background: linear-gradient(90deg, var(--gold), #d4a84b); }
.widget-bar-fill--success { background: linear-gradient(90deg, var(--accent), #4D6BFF); }
.widget-bar-value { font-size: 13px; font-weight: 600; color: var(--fg); width: 52px; text-align: right; flex-shrink: 0; }

@keyframes bar-grow { from { width: 0; } to { width: var(--bar-width); } }
.bar-animate { animation: bar-grow 1.2s cubic-bezier(0.16,1,0.3,1) forwards; }

/* Mini metrics row */
.widget-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--border);
  margin-bottom: 16px;
}
.widget-metric { text-align: center; }
.widget-metric-val { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--fg); }
.widget-metric-lbl { display: block; font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

.widget-context { font-size: 13px; color: var(--fg3); line-height: 1.6; margin-bottom: 24px; }
.widget-footer { font-size: 11.5px; color: var(--fg3); text-align: center; }
.badge-gold { background: rgba(182,143,64,0.1); color: var(--gold); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .widget { max-width: 100%; }
  .widget-donut { width: 140px; height: 140px; }
  .donut-value { font-size: 28px; }
  .widget-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* Service card grid — 3 columns top, 2 centered bottom for odd counts */
.svc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-card-grid .card--featured {
  grid-column: auto;
}
@media (max-width: 768px) {
  .svc-card-grid { grid-template-columns: 1fr; }
}
