/* ============================================================
   Northbridge Advisory — Hero
   Aesthetic: editorial / refined — ink + ivory, serif display,
   asymmetric split, generous negative space
   ============================================================ */

:root {
  /* Palette: Cobalt + Cream (rotated away from banned beige+brass+espresso) */
  --ink: #0c1726;          /* deep cobalt-ink, not espresso */
  --ink-soft: #243245;
  --ivory: #f1ece4;        /* warm off-white */
  --ivory-deep: #e7e0d4;
  --warm-gray: #6b7689;    /* cool slate gray */
  --line: rgba(12, 23, 38, 0.16);
  --line-light: rgba(241, 236, 228, 0.18);
  --accent: #2f6fed;       /* cobalt blue */
  --accent-soft: #6b95f5;
  --display: 'Newsreader', 'Georgia', serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
}

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

html, body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--ivory); }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 56px;
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(244, 239, 232, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: 14px 56px;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
  transition: color .4s ease;
}
.topbar.scrolled .brand { color: var(--ink); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  letter-spacing: -0.02em;
}
.brand-name {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  gap: 36px;
}
.topnav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 232, 0.85);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color .3s ease;
}
.topbar.scrolled .topnav a { color: var(--ink-soft); }
.topnav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.topnav a:hover::after { width: 100%; }

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(244, 239, 232, 0.4);
  border-radius: 100px;
  transition: all .3s ease;
}
.topbar.scrolled .topbar-cta {
  color: var(--ink);
  border-color: var(--line);
}
.topbar-cta:hover {
  background: var(--ivory);
  color: var(--ink) !important;
  border-color: var(--ivory);
}
.topbar-cta i { font-size: 14px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

/* Background image fills entire hero */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) contrast(1.05) saturate(0.85);
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.16); }
  to   { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(12, 23, 38, 0.94) 0%,
      rgba(12, 23, 38, 0.80) 38%,
      rgba(12, 23, 38, 0.34) 68%,
      rgba(12, 23, 38, 0.08) 100%
    );
}
.grain {
  position: absolute; inset: 0;
  opacity: 0.10;
  pointer-events: none;
  background-image:
    repeating-conic-gradient(rgba(241,236,228,0.05) 0deg, transparent 0.0008deg 2deg);
  mix-blend-mode: overlay;
}

/* Left content */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 56px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  color: var(--ivory);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.72);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .8s .2s ease forwards;
}
.dot {
  width: 6px; height: 6px;
  background: var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(216, 119, 87, 0.22);
}

.hero-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ivory);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s .35s ease forwards;
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-soft);
}

.hero-sub {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(244, 239, 232, 0.82);
  max-width: 540px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 1s .55s ease forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 1s .75s ease forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--ivory);
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 100px;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #fff;
}
.btn-primary i {
  font-size: 15px;
  transition: transform .3s ease;
}
.btn-primary:hover i { transform: translateX(4px); }

.btn-ghost {
  display: none;
}

/* Remove unused trust row styles (trust strip moved out of hero per audit) */
.hero-trust, .trust-label, .trust-list, .trust-list .sep { display: none !important; }

/* Right: stat panel overlapping the image */
.hero-panel {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px 0 0;
}
.panel-card {
  background: rgba(241, 236, 228, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(12, 23, 38, 0.10);
  border-radius: 4px;
  padding: 44px 40px;
  width: 340px;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.50),
    0 8px 24px -8px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(24px);
  animation: panelIn 1s .9s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes panelIn {
  to { opacity: 1; transform: translateY(0); }
}

.panel-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.panel-num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.panel-num .unit {
  font-size: 22px;
  font-weight: 300;
  color: var(--warm-gray);
  margin-left: 4px;
}
.panel-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}
.panel-foot {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.panel-foot i { font-size: 15px; color: var(--accent); }

/* Bottom corner mark */
.hero-corner {
  position: absolute;
  bottom: 24px;
  left: 64px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 232, 0.45);
  opacity: 0;
  animation: fadeUp 1s 1.2s ease forwards;
}
.hero-corner i { font-size: 13px; }

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 140px 32px 60px;
    max-width: 100%;
  }
  .hero-panel {
    padding: 0 32px 60px;
  }
  .hero-corner { left: 32px; }
}

@media (max-width: 640px) {
  .topbar { padding: 16px 24px; }
  .topbar.scrolled { padding: 12px 24px; }
  .topnav { display: none; }
  .brand-name { display: none; }
  .topbar-cta { padding: 8px 14px; font-size: 11px; }
  .topbar-cta i { display: none; }

  .hero-content { padding: 120px 24px 48px; }
  .hero-headline { font-size: clamp(32px, 9vw, 44px); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .hero-panel { padding: 0 24px 48px; }
  .panel-card { width: 100%; padding: 36px 28px; }
  .hero-corner { left: 24px; bottom: 16px; }
  .trust-list { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-img { animation: none; transform: scale(1.06); }
}
