/* ==========================================================================
   JARVIS STRATEGIES — Design System v2
   Palette: deep navy + amber (kept from brand). Fonts: Instrument Serif /
   DM Sans / JetBrains Mono (kept from brand).
   ========================================================================== */

:root {
  --navy-0: #0b1220;
  --navy-1: #101a2b;
  --dark: #1a2332;
  --med: #232f42;
  --line: rgba(168, 188, 200, 0.14);
  --line-strong: rgba(168, 188, 200, 0.28);
  --amber: #e8a44d;
  --amber-2: #d4933d;
  --amber-glow: rgba(232, 164, 77, 0.16);
  --steel: #64a0dc;
  --text: #f2f4f8;
  --secondary: #a8bcc8;
  --muted: #7a8fa3;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overscroll-behavior-y: none; }

body {
  background: var(--navy-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--navy-0); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-0); }
::-webkit-scrollbar-thumb { background: var(--med); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-2); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }
p { color: var(--secondary); }
.serif-i { font-family: var(--serif); font-style: italic; color: var(--amber); }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--amber);
  display: inline-block;
}

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
section { padding: 110px 0; position: relative; }
.section-tight { padding: 80px 0; }
.page-content { position: relative; z-index: 1; }

/* ---------- Reveal animations (GSAP enhances; these are the no-JS fallback states) ---------- */
.reveal { opacity: 0; transform: translateY(34px); }
.no-js .reveal, .reveal.revealed { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 40px;
  border-bottom-color: var(--line);
}
.nav-logo img { height: 52px; width: auto; display: block; transition: transform 0.3s var(--ease-spring); }
.nav-logo:hover img { transform: scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-link {
  color: var(--secondary); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  position: relative; padding: 4px 0; transition: color 0.25s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--amber); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-icon { display: inline-flex; color: var(--muted); transition: color 0.25s, transform 0.25s var(--ease-spring); }
.nav-icon:hover { color: var(--amber); transform: translateY(-2px); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  min-width: 320px; background: rgba(16, 26, 43, 0.97); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.dropdown a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 14px; border-radius: 6px; color: var(--secondary); text-decoration: none;
  font-size: 0.92rem; transition: background 0.2s, color 0.2s;
}
.dropdown a:hover { background: var(--amber-glow); color: var(--text); }
.dropdown a .dd-price { font-family: var(--mono); font-size: 0.72rem; color: var(--amber); }

.nav-cta {
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  color: var(--navy-0) !important; background: var(--amber);
  padding: 10px 22px; border-radius: 6px; transition: background 0.25s, transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--amber-2); transform: translateY(-2px); box-shadow: 0 8px 24px var(--amber-glow); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 950; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; transition: 0.3s var(--ease-out); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; padding: 140px 0 80px;
}
#hero-3d { position: absolute; inset: 0; z-index: 0; }
#hero-3d canvas { display: block; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,18,32,0.35) 0%, rgba(11,18,32,0.1) 40%, rgba(11,18,32,0.85) 88%, var(--navy-0) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 820px; margin-bottom: 30px; }
.hero-sub { font-size: 1.18rem; color: var(--secondary); line-height: 1.75; max-width: 620px; margin-bottom: 46px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-call { margin-top: 26px; font-size: 1.05rem; color: var(--secondary); }
.hero-call a { color: var(--text); font-weight: 600; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.hero-call a:hover { color: var(--amber); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--secondary); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 18px; margin-bottom: 34px; background: rgba(16,26,43,0.6);
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse-dot 2.4s infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 var(--amber-glow); } 50% { box-shadow: 0 0 0 7px transparent; } }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ''; width: 1px; height: 42px; background: linear-gradient(var(--amber), transparent); animation: scroll-drip 2s var(--ease-out) infinite; }
@keyframes scroll-drip { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 16px 34px; border-radius: 8px; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; border: none;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn-primary { background: var(--amber); color: var(--navy-0); }
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease-out);
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover { box-shadow: 0 12px 34px var(--amber-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); box-shadow: 0 8px 26px rgba(232,164,77,0.1); }
.btn .arr { transition: transform 0.3s var(--ease-spring); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Stats band ---------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(16,26,43,0.5); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.stat { text-align: center; }
.stat-num {
  font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 3.6rem); color: var(--amber);
  line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.stat-source { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card {
  background: linear-gradient(160deg, var(--navy-1), var(--dark));
  border: 1px solid var(--line); border-radius: 12px; padding: 38px;
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  transform-style: preserve-3d;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px; opacity: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(232,164,77,0.09), transparent 45%);
  transition: opacity 0.4s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(232,164,77,0.4); box-shadow: 0 22px 50px rgba(0,0,0,0.45); }

a.card { display: block; text-decoration: none; color: inherit; }
a.card h3 { color: var(--text); transition: color 0.25s; }
a.card:hover h3 { color: var(--amber); }
.card .read-more {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
}
.card .read-more .arr { transition: transform 0.3s var(--ease-spring); }
.card:hover .read-more .arr { transform: translateX(6px); }

/* ---------- Service ladder ---------- */
.svc-hero-card {
  background: linear-gradient(160deg, var(--navy-1), var(--dark));
  border: 1px solid rgba(232,164,77,0.35); border-radius: 14px; padding: 48px;
  position: relative; overflow: hidden; display: block; text-decoration: none; color: inherit;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.svc-hero-card:hover { transform: translateY(-5px); box-shadow: 0 30px 70px rgba(0,0,0,0.5); border-color: var(--amber); }
.svc-hero-card .glow {
  position: absolute; top: -120px; right: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow), transparent 65%); pointer-events: none;
}
.svc-tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy-0); background: var(--amber); border-radius: 4px; padding: 4px 12px; display: inline-block;
}
.svc-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--amber); }
.price-sm { font-size: 1.3rem; }
.price-label { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.svc-card { cursor: pointer; }
.svc-card .price-row { margin-top: 22px; padding-top: 20px; }
.svc-note { font-size: 0.88rem; color: var(--muted); font-style: italic; line-height: 1.6; margin-top: 14px; }
.check-list { list-style: none; display: grid; gap: 14px; margin: 26px 0; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--secondary); font-size: 1rem; line-height: 1.6; }
.check-list li::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--amber-glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8a44d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ---------- Case studies ---------- */
.case {
  background: linear-gradient(160deg, var(--navy-1), var(--dark));
  border: 1px solid var(--line); border-radius: 12px; padding: 44px; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.case::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--amber); }
.case:hover { border-color: rgba(232,164,77,0.35); transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0,0,0,0.4); }
.case .metric { font-family: var(--serif); font-size: 2rem; color: var(--amber); }

/* ---------- VSL ---------- */
.vsl-frame {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong);
  aspect-ratio: 16/9; background: var(--navy-1); display: flex; align-items: center; justify-content: center;
}
.vsl-frame video { width: 100%; height: 100%; object-fit: cover; }
.vsl-play {
  width: 88px; height: 88px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--amber); color: var(--navy-0); display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s; position: relative; z-index: 2;
}
.vsl-play:hover { transform: scale(1.1); box-shadow: 0 0 0 14px var(--amber-glow); }

/* ---------- Teaser / assessment entry ---------- */
.teaser-option {
  background: linear-gradient(160deg, var(--navy-1), var(--dark));
  border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px;
  color: var(--text); font-family: var(--sans); font-size: 1.05rem; font-weight: 500;
  cursor: pointer; text-align: left; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.teaser-option::after {
  content: '→'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%) translateX(-6px);
  color: var(--amber); opacity: 0; transition: opacity 0.3s, transform 0.3s var(--ease-spring); font-size: 1.2rem;
}
.teaser-option:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.4); }
.teaser-option:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Fit lists ---------- */
.fit-list { list-style: none; display: grid; gap: 12px; }
.fit-list li { display: flex; gap: 12px; align-items: baseline; font-size: 1.02rem; }
.fit-yes li { color: var(--secondary); }
.fit-yes li::before { content: '✓'; color: var(--amber); font-weight: 700; }
.fit-no li { color: var(--muted); }
.fit-no li::before { content: '×'; color: var(--muted); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; background: var(--navy-1); overflow: hidden; transition: border-color 0.3s; }
.faq-item:hover { border-color: var(--line-strong); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 24px 28px; color: var(--text); font-family: var(--sans); font-size: 1.08rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-q .chev { color: var(--amber); transition: transform 0.35s var(--ease-out); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq-a-inner { padding: 0 28px 26px; color: var(--secondary); line-height: 1.75; font-size: 1rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 70px 0 34px; background: var(--navy-1); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 50px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 300px; line-height: 1.7; }
.footer-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.footer-nav a { display: block; color: var(--secondary); text-decoration: none; font-size: 0.94rem; margin-bottom: 12px; transition: color 0.2s, transform 0.2s; }
.footer-nav a:hover { color: var(--amber); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-bottom p, .footer-bottom a { color: var(--muted); font-size: 0.86rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }
.footer-pillars { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--muted); }

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed; right: 26px; bottom: 26px; z-index: 800;
  background: var(--amber); color: var(--navy-0); font-weight: 700; font-size: 0.95rem;
  padding: 15px 26px; border-radius: 100px; text-decoration: none;
  box-shadow: 0 10px 34px rgba(232,164,77,0.35);
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-spring);
}
.floating-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-cta:hover { transform: translateY(-3px); }

/* ---------- Booking modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000; padding: 20px; overflow-y: auto;
  background: rgba(5, 9, 17, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-box {
  max-width: 520px; margin: 48px auto; background: var(--navy-1);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 42px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: modal-in 0.35s var(--ease-spring);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-box h2 { font-size: 1.9rem; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 30px; cursor: pointer; line-height: 1; padding: 0; transition: color 0.2s, transform 0.3s var(--ease-spring); }
.modal-close:hover { color: var(--amber); transform: rotate(90deg); }
.form-label { display: block; margin-bottom: 8px; color: var(--text); font-size: 0.95rem; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 14px; background: var(--navy-0); border: 1px solid var(--line);
  border-radius: 7px; color: var(--text); font-size: 16px; font-family: var(--sans);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-glow);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; }
.form-msg { margin-bottom: 20px; padding: 13px 16px; border-radius: 7px; display: none; font-size: 0.95rem; }

/* ---------- Blog / article ---------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { margin: 56px 0 20px; }
.article-body h3 { margin: 40px 0 14px; }
.article-body p { margin-bottom: 22px; line-height: 1.85; font-size: 1.06rem; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; color: var(--secondary); line-height: 1.8; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--amber); }
.article-body blockquote {
  border-left: 3px solid var(--amber); padding: 6px 0 6px 24px; margin: 32px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--text);
}
.article-meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.breadcrumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: linear-gradient(140deg, var(--navy-1) 0%, var(--dark) 60%, rgba(232,164,77,0.12) 130%);
  border: 1px solid rgba(232,164,77,0.3); border-radius: 16px; padding: 70px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-panel h2 { max-width: 700px; margin: 0 auto 20px; }
.cta-panel p { max-width: 560px; margin: 0 auto 40px; font-size: 1.08rem; line-height: 1.75; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 170px 0 70px; position: relative; }
.page-hero h1 { max-width: 800px; margin-bottom: 22px; }
.page-hero .lede { font-size: 1.15rem; color: var(--secondary); line-height: 1.75; max-width: 680px; }

/* ---------- Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 60px; }
.text-center { text-align: center; }
.link-arrow { color: var(--amber); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow .arr { transition: transform 0.3s var(--ease-spring); }
.link-arrow:hover .arr { transform: translateX(5px); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-3, .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .container { padding: 0 22px; }
  .hamburger { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: rgba(11,18,32,0.98); flex-direction: column;
    justify-content: center; gap: 30px; transform: translateY(-100%); transition: transform 0.45s var(--ease-out);
    backdrop-filter: blur(18px);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { font-size: 1.3rem; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; background: none; border: none; box-shadow: none; padding: 0 0 0 18px; }
  .has-dropdown { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .card-grid, .card-grid-3, .grid-2, .grid-3, .stats-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 48px 26px; }
  .modal-box { padding: 30px 24px; margin: 24px auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .floating-cta { right: 16px; bottom: 16px; padding: 13px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Legacy aliases (reshelled v1 pages) ---------- */
:root {
  --primary: #f2f4f8;
  --white: #f2f4f8;
  --accent: #e8a44d;
  --accent-2: #d4933d;
  --accent-glow: rgba(232, 164, 77, 0.16);
  --border: rgba(168, 188, 200, 0.14);
}

/* ---------- v1 compat components ---------- */
.tag {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--amber); display: inline-block; margin-bottom: 20px;
}
.blog-header { max-width: 1180px; margin: 0 auto; padding: 160px 32px 50px; }
.blog-header h1 { margin-bottom: 18px; }
.blog-header p { font-size: 1.1rem; max-width: 640px; line-height: 1.7; }
.blog-grid {
  max-width: 1180px; margin: 0 auto; padding: 0 32px 90px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.post-card {
  background: linear-gradient(160deg, var(--navy-1), var(--dark));
  border: 1px solid var(--line); border-radius: 12px; padding: 32px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(232,164,77,0.4); box-shadow: 0 20px 46px rgba(0,0,0,0.45); }
.post-card h2 { font-size: 1.35rem; line-height: 1.3; color: var(--text); }
.post-card p { font-size: 0.97rem; color: var(--muted); line-height: 1.65; flex: 1; }
.post-tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); display: inline-block;
}
.post-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.read-more { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.article-wrap { max-width: 800px; margin: 0 auto; padding: 150px 32px 70px; }
.article-wrap h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 14px 0 18px; }
.article-wrap .article-body { margin-top: 40px; }
.article-wrap .article-body h2 { margin: 48px 0 18px; font-size: 1.8rem; }
.article-wrap .article-body h3 { margin: 36px 0 12px; font-size: 1.35rem; }
.article-wrap .article-body p { margin-bottom: 20px; line-height: 1.85; font-size: 1.05rem; color: var(--secondary); }
.article-wrap .article-body ul, .article-wrap .article-body ol { margin: 0 0 20px 24px; color: var(--secondary); line-height: 1.8; }
.article-wrap .article-body li { margin-bottom: 8px; }
.article-wrap .article-body a { color: var(--amber); }
.article-wrap .article-body strong { color: var(--text); }
.article-wrap .article-body blockquote {
  border-left: 3px solid var(--amber); padding: 6px 0 6px 22px; margin: 30px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--text);
}
.article-footer {
  margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.article-footer a { color: var(--amber); text-decoration: none; }
.article-footer a:hover { text-decoration: underline; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } .article-wrap { padding-top: 120px; } }

/* solutions index v1 compat */
.wrap { max-width: 1180px; margin: 0 auto; padding: 160px 32px 80px; }
.wrap h1 { margin-bottom: 18px; }
.wrap > p { max-width: 640px; font-size: 1.08rem; line-height: 1.7; margin-bottom: 40px; }
.wrap .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cta-box {
  margin-top: 50px; background: linear-gradient(140deg, var(--navy-1), var(--dark));
  border: 1px solid rgba(232,164,77,0.3); border-radius: 14px; padding: 44px; text-align: center;
}
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
@media (max-width: 760px) { .wrap .grid { grid-template-columns: 1fr; } .wrap { padding-top: 130px; } }

/* back-link on article pages */
.back-link {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber) !important; text-decoration: none; display: inline-block; margin-bottom: 26px;
  transition: transform 0.25s var(--ease-out);
}
.back-link:hover { transform: translateX(-4px); text-decoration: none; }
.article-wrap .post-tag { margin-left: 0; }
.article-wrap > .back-link + .post-tag, .article-wrap > .post-tag { display: inline-block; }

/* hero legibility shade behind text */
.hero .container::before {
  content: ''; position: absolute; inset: -60px -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 65% at 28% 50%, rgba(11,18,32,0.72), transparent 70%);
}
