
/* Real logo image — white version on dark background */
.nav__logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.nav__logo-mark:hover {
  filter: drop-shadow(0 0 8px rgba(0, 168, 232, 0.8));
  transform: scale(1.05);
}

.hero-logo {
  animation: logo-glow-img 2s ease 0.3s both;
}

@keyframes logo-glow-img {
  0%   { opacity: 0; filter: drop-shadow(0 0 0px rgba(0,168,232,0)); transform: scale(0.9); }
  60%  { opacity: 1; filter: drop-shadow(0 0 40px rgba(0,168,232,0.9)); transform: scale(1.05); }
  100% { opacity: 1; filter: drop-shadow(0 0 12px rgba(0,168,232,0.35)); transform: scale(1); }
}
/* ============================================================
   MOTTO APPRAISAL SERVICE — Parallax Rebuild
   Williams F1 × Technical Analysis × Personal Brand
   ============================================================ */

/* ── CUSTOM PROPERTIES ─────────────────────────────────── */

:root {
  /* Brand Palette — Williams F1 */
  --bg:          #08111E;
  --bg-panel:    #0D1929;
  --accent:      #00A8E8;
  --accent-2:    #0066CC;
  --text:        #F2F2F2;
  --text-2:      #94A3B8;
  --border:      #1A2D45;
  --white:       #FFFFFF;

  /* Backwards-compatible aliases for sub-pages */
  --ivory:           #F2F2F2;
  --navy-dark:       #08111E;
  --navy-light:      #0D1929;
  --navy-mid:        #111E34;
  --navy-card:       #0D1929;
  --navy-border:     #1A2D45;
  --electric-blue:   #00A8E8;
  --electric-blue-hover: #0066CC;
  --electric-blue-active: #004A99;
  --electric-blue-glow: rgba(0, 168, 232, 0.15);
  --off-white:       #94A3B8;
  --slate:           #94A3B8;
  --ivory-dim:       rgba(240, 240, 240, 0.06);
  --ivory-muted:     rgba(240, 240, 240, 0.7);

  /* Semantic aliases */
  --color-bg:           var(--bg);
  --color-surface:      var(--bg-panel);
  --color-border:       var(--border);
  --color-text:         var(--text);
  --color-text-muted:   var(--text-2);
  --color-primary:      var(--accent);
  --color-primary-hover: var(--accent-2);

  /* Derived */
  --accent-glow:     rgba(0, 168, 232, 0.15);
  --accent-glow-strong: rgba(0, 168, 232, 0.35);
  --bg-glass:        rgba(8, 17, 30, 0.85);
  --bg-glass-solid:  rgba(8, 17, 30, 0.95);

  /* Type Scale — Fluid */
  --text-xs:    clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:    clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:    clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:    clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:   clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:   clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero:  clamp(2.75rem, 0.5rem + 6vw, 5.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Typography */
  --font-body:    'Geist', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Geist', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Layout */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
  --nav-height:      72px;

  /* Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base:   250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow:   400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
}


/* ── RESET & BASE ──────────────────────────────────────── */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-8));
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

a {
  color: var(--text);
  text-decoration: none;
}

a, button, [role="button"], input, textarea, select {
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

::selection {
  background: var(--accent-glow-strong);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ── LAYOUT UTILITIES ──────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 54ch;
  line-height: 1.5;
}


/* ── NAVIGATION ────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(26, 45, 69, 0.5);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.nav.scrolled {
  background: var(--bg-glass-solid);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
}

.nav__logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav__brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-family: var(--font-display);
  text-transform: uppercase;
}

/* Legacy — keep for backwards compat */
.nav__logo-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--text);
}

.nav__logo-text span {
  display: inline;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0;
}

.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  position: relative;
}

/* Nav link hover underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  width: 100%;
}

.nav__cta {
  display: none;
  align-items: center;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta   { display: flex; }
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav__hamburger { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8, 17, 30, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--accent);
}


/* ── BUTTONS ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Primary button with shimmer sweep */
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: var(--shadow-glow), 0 8px 32px rgba(0, 168, 232, 0.25);
  transform: translateY(-2px);
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--text-2);
  background: rgba(242, 242, 242, 0.06);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: none;
  padding: var(--space-2) var(--space-4);
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}


/* ── HERO ──────────────────────────────────────────────── */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Parallax background layer */
.hero-bg {
  position: absolute;
  inset: -20% 0;
  /* NO solid bg — only gradient overlays. Canvas sits below this. */
  background:
    radial-gradient(ellipse at 70% 20%, rgba(0, 168, 232, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 102, 204, 0.03) 0%, transparent 50%);
  will-change: transform;
  z-index: 2;   /* above canvas but below content */
  pointer-events: none;
}

/* Technical grid background */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 45, 69, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 45, 69, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.4) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.4) 0%, transparent 70%);
  z-index: 3;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 4;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-16);
  width: 100%;
}

/* Logo intro in hero */
.hero__logo-intro {
  margin-bottom: var(--space-10);
}

.hero-logo {
  width: 100px;
  height: 100px;
  color: var(--white);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 20ch;
  margin-bottom: var(--space-8);
  font-family: var(--font-display);
}

.hero__line-1,
.hero__line-2 {
  display: block;
}

.hero__line-2 {
  margin-top: var(--space-2);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 48ch;
  line-height: 1.5;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}


/* ── LOGO SVG ANIMATION ────────────────────────────────── */

.logo-svg .logo-draw {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-logo-stroke 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-svg .logo-draw-rect {
  opacity: 0;
  animation: draw-logo-fill 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

.logo-svg {
  animation: logo-glow 0.6s ease-in-out 1.3s forwards;
}

@keyframes draw-logo-stroke {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-logo-fill {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes logo-glow {
  0% { filter: drop-shadow(0 0 0px var(--accent)); }
  50% { filter: drop-shadow(0 0 20px var(--accent)); }
  100% { filter: drop-shadow(0 0 4px rgba(0,168,232,0.3)); }
}

/* Nav logo is smaller, animates too */
.nav__logo-mark.logo-svg .logo-draw {
  animation-duration: 1s;
}
.nav__logo-mark.logo-svg .logo-draw-rect {
  animation-delay: 0.5s;
}


/* ── STATS STRIP (Section 2) ──────────────────────────── */

.stats-strip {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-12);
  position: relative;
  z-index: 2;
}

.stats-strip__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
}

.stat-block {
  text-align: center;
  min-width: 180px;
}

.stat-block__value {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  margin-bottom: var(--space-2);
}

.stat-block__label {
  font-size: var(--text-sm);
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.stat-block__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  display: none;
}

@media (min-width: 768px) {
  .stat-block__divider { display: block; }
}


/* ── SERVICES SECTION (Section 3) — Horizontal Scroll ── */

.services-section {
  overflow: hidden;
}

.services-scroll {
  padding-left: max(var(--space-6), calc((100vw - var(--content-wide)) / 2 + var(--space-6)));
  padding-right: var(--space-6);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.services-scroll::-webkit-scrollbar {
  display: none;
}

.services-track {
  display: flex;
  gap: var(--space-6);
  padding-bottom: var(--space-4);
}

.service-card {
  flex: 0 0 320px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Top glow line on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 168, 232, 0.2);
  border-color: rgba(0, 168, 232, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-4);
  letter-spacing: 0.08em;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap 0.3s ease, color 0.3s ease;
}

.service-card__link:hover {
  color: var(--accent-2);
  gap: var(--space-3);
}

/* Slide-in animation for cards */
.slide-in-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--delay, 0) * 0.12s);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}


/* ── AVM SECTION (Section 4) — Parallax BG ─────────── */

.avm-section {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  overflow: hidden;
}

/* Fixed background texture */
.avm-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 168, 232, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(0, 102, 204, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  z-index: 0;
}

.avm-section__overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-panel);
  z-index: 0;
}

/* Subtle grid texture */
.avm-section__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 45, 69, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 45, 69, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
  mask-image: radial-gradient(ellipse at 60% 50%, rgba(0,0,0,0.3) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, rgba(0,0,0,0.3) 0%, transparent 80%);
}

.avm-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .avm-section__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.avm-section__text .section-subtitle {
  margin-bottom: 0;
}

/* AVM Error Data Table */
.avm-table {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.avm-table__row {
  position: relative;
  padding: var(--space-4) var(--space-5);
  background: rgba(8, 17, 30, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.avm-table__bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--bar-width, 0%);
  background: linear-gradient(90deg, rgba(0, 168, 232, 0.1), rgba(0, 168, 232, 0.04));
  border-right: 2px solid rgba(0, 168, 232, 0.3);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

/* Animate bars only when visible */
.avm-table__row .avm-table__bar {
  width: 0;
}

.avm-section.bars-animated .avm-table__row .avm-table__bar {
  width: var(--bar-width, 0%);
}

.avm-table__label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-2);
  position: relative;
  z-index: 1;
}

.avm-table__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.avm-table__source {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-2);
  margin-top: var(--space-4);
  opacity: 0.6;
}


/* ── NEWSLETTER SECTION (Section 5) ────────────────── */

.newsletter-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.newsletter-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .newsletter-section__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.newsletter-embed {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 200px;
}


/* ── FOOTER ────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-block: var(--space-16) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--text-2);
  max-width: 36ch;
  line-height: 1.6;
  margin-top: var(--space-4);
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--text-2);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--text-2);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--text-2);
}

.footer__legal a:hover {
  color: var(--text);
}


/* ── SCROLL-TRIGGERED REVEAL ANIMATIONS ────────────────── */

.reveal-el {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-el.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* Legacy fade-in classes for sub-pages */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }


/* ── SERVICES PAGE ─────────────────────────────────────── */

.service-detail {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.service-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
}

.service-detail__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.service-detail__title {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--text);
}

.service-detail__badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-2);
  white-space: nowrap;
}

.service-detail__desc {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 72ch;
}

.service-detail__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .service-detail__list {
    grid-template-columns: 1fr 1fr;
  }
}

.service-detail__list li {
  font-size: var(--text-sm);
  color: var(--text-2);
  padding-left: var(--space-6);
  position: relative;
}

.service-detail__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}


/* ── ABOUT PAGE ────────────────────────────────────────── */

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.about-photo {
  aspect-ratio: 4/5;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  position: relative;
  overflow: hidden;
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.05) 0%, transparent 50%);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.about-stat {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}

.about-stat__value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.about-stat__label {
  font-size: var(--text-xs);
  color: var(--text-2);
  margin-top: var(--space-1);
}


/* ── CONTACT PAGE ──────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.embed-placeholder {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 168, 232, 0.1);
  border: 1px solid rgba(0, 168, 232, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
}

.contact-info__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--text);
}

.contact-info__value a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.contact-info__value a:hover {
  text-decoration-color: var(--accent);
}

.county-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.county-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-2);
}


/* ── NEWSLETTER PAGE ───────────────────────────────────── */

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .newsletter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.issue-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.issue-card:hover {
  border-color: rgba(0, 168, 232, 0.3);
  transform: translateY(-2px);
}

.issue-card__issue {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.issue-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.issue-card__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
}


/* ── PRIVACY PAGE ──────────────────────────────────────── */

.privacy-content {
  max-width: var(--content-default);
}

.privacy-content h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.privacy-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.privacy-content p {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.privacy-content ul {
  list-style: none;
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.privacy-content ul li {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
  position: relative;
  margin-bottom: var(--space-2);
}

.privacy-content ul li::before {
  content: '—';
  position: absolute;
  left: calc(-1 * var(--space-6));
  color: var(--accent);
}

.privacy-content strong {
  color: var(--text);
}

.privacy-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-content a:hover {
  color: var(--accent-2);
}

.privacy-toc {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.privacy-toc__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  margin-bottom: var(--space-4);
}

.privacy-toc ol {
  list-style: decimal;
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.privacy-toc ol li {
  font-size: var(--text-sm);
  color: var(--text-2);
}

.privacy-toc ol li a {
  color: var(--text-2);
  text-decoration: none;
}

.privacy-toc ol li a:hover {
  color: var(--accent);
}


/* ── PAGE HEADERS (sub-pages) ──────────────────────────── */

.page-header {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-12);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.page-header__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}

.page-header__subtitle {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 54ch;
  line-height: 1.5;
}


/* ── CARDS (sub-pages) ─────────────────────────────────── */

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: rgba(0, 168, 232, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-4);
  letter-spacing: 0.08em;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.card__text {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.card__link:hover {
  color: var(--accent-2);
  gap: var(--space-3);
}


/* ── SOCIAL PROOF STRIP (sub-pages) ────────────────────── */

.proof-strip {
  padding-block: var(--space-10);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.proof-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  align-items: center;
}

.proof-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-2);
}

.proof-strip__item strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.proof-strip__divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  display: none;
}

@media (min-width: 768px) {
  .proof-strip__divider { display: block; }
}


/* ── DATA GRID / CALLOUT (sub-pages) ───────────────────── */

.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}

.data-point {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.data-point__value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}

.data-point__label {
  font-size: var(--text-sm);
  color: var(--text-2);
}

.data-callout {
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.08) 0%, transparent 60%);
  border: 1px solid rgba(0, 168, 232, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.data-callout__value {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.data-callout__label {
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-bottom: var(--space-4);
}

.data-callout__source {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-2);
}


/* ── AVM GRID (sub-pages) ──────────────────────────────── */

.avm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .avm-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ── GRID UTILITIES (sub-pages) ────────────────────────── */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ── POST CARDS (sub-pages) ────────────────────────────── */

.post-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.post-card:hover {
  border-color: rgba(0, 168, 232, 0.3);
  transform: translateY(-2px);
}

.post-card__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-2);
  margin-bottom: var(--space-3);
}

.post-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.post-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.post-card__link:hover {
  color: var(--accent-2);
}


/* ── DIVIDER ───────────────────────────────────────────── */

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
}


/* ── RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 767px) {
  .container {
    padding-inline: var(--space-4);
  }

  .hero__title {
    max-width: 100%;
  }

  .section {
    padding-block: var(--space-12);
  }

  .card {
    padding: var(--space-6);
  }

  .service-detail {
    padding: var(--space-6);
  }

  .footer__grid {
    gap: var(--space-8);
  }

  .service-card {
    flex: 0 0 280px;
  }

  .hero__scroll-hint {
    display: none;
  }
}

@media (min-width: 1200px) {
  .container {
    padding-inline: var(--space-8);
  }
}


/* ── PRINT ─────────────────────────────────────────────── */

@media print {
  .nav, .mobile-menu, .btn, .newsletter-section, .footer {
    display: none;
  }

  body {
    background: white;
    color: #1a1a1a;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }
}


/* ── NEWSLETTER SUBSCRIBE BLOCK ──────────────────────────── */

.newsletter-subscribe-block {
  text-align: center;
  padding: var(--space-8) var(--space-6) var(--space-12);
}

.subscribe-label {
  font-size: var(--text-base);
  color: var(--text-2);
  margin-bottom: var(--space-6);
  font-weight: 500;
}

.subscribe-cta {
  display: inline-block;
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 700;
  text-align: center;
}

.subscribe-cta:hover {
  background: var(--accent-2) !important;
}

@media (max-width: 767px) {
  .subscribe-cta {
    width: 100%;
    display: block;
    text-align: center;
  }
}

.subscribe-note {
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-top: var(--space-4);
  font-style: italic;
}

/* ── FOOTER BRAND LINK ───────────────────────────────────── */

.footer__brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
}

.footer__brand-link:hover {
  color: var(--accent);
}

/* ── LINKEDIN PROFILE BADGE ──────────────────────────────── */

.linkedin-profile {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* hero canvas managed by .hero-bg-3d */

/* ── FOOTER SOCIAL LINKS ─────────────────────────────────── */

.footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--space-3) !important;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-2) !important;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.footer__social-link:hover {
  color: var(--accent) !important;
}

.footer__social-link svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.footer__social-link:hover svg {
  opacity: 1;
}

/* ── GRAVATAR INLINE HOVERCARD ───────────────────────────────────── */

.gravatar-hovercard {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 420px;
  margin-bottom: var(--space-6);
}

.gravatar-hovercard__inner {
  display: flex;
  flex-direction: column;
}

/* ── BEEHIIV EMBED ───────────────────────────────────────────────── */

.beehiiv-embed-wrap {
  width: 100%;
}

.beehiiv-embed-wrap iframe {
  display: block;
  width: 100%;
}

/* ── NEWSLETTER SECTION — STACKED LAYOUT ────────────────────────── */

.newsletter-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.newsletter-section__copy {
  /* left column */
}

.newsletter-section__form {
  /* right column */
}

@media (max-width: 768px) {
  .newsletter-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── HERO CANVAS BACKGROUND ──────────────────────────────────────── */

.hero-bg-3d {
  position: absolute;
  inset: 0;
  z-index: 1;           /* ABOVE the base bg, BELOW the gradient + content */
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-3d canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Hero content stays above canvas */
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__scroll-hint {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-bg-3d { opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-3d { display: none; }
}

/* ── BEEHIIV SUBSCRIBE FORM ──────────────────────────────────────── */

.beehiiv-form-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-6) var(--space-6) var(--space-8);
  max-width: 560px;
}

.beehiiv-form__row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  margin-top: var(--space-4);
}

.beehiiv-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  transition: border-color 0.2s ease;
}

.beehiiv-form__input::placeholder {
  color: var(--text-2);
  opacity: 0.6;
}

.beehiiv-form__input:focus {
  border-color: var(--accent);
}

.beehiiv-form__btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .beehiiv-form__row {
    flex-direction: column;
  }
  .beehiiv-form__btn {
    width: 100%;
  }
}

/* ── GEIST FONT FAMILY ───────────────────────────────────────────── */

@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-ThinItalic.otf') format('opentype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-ExtraLight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-ExtraLightItalic.otf') format('opentype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-LightItalic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-MediumItalic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-SemiBoldItalic.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-BoldItalic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-ExtraBold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-ExtraBoldItalic.otf') format('opentype'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-BlackItalic.otf') format('opentype'); font-weight: 900; font-style: italic; font-display: swap; }

/* ── CASE STUDIES ────────────────────────────────────────────────── */

.case-studies-section {
  background: var(--bg);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.case-card__tag {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  font-family: var(--font-display);
}

.case-card__body {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}

.case-card__stats {
  display: flex;
  gap: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.case-card__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.case-card__stat-value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.case-card__stat-label {
  font-size: var(--text-xs);
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

/* ── SERVICE DETAIL PAGES ─────────────────────────────────────────── */

.service-detail-section {
  padding: var(--space-24) 0;
  border-top: 1px solid var(--border);
}

.section--alt {
  background: var(--bg-panel, #0d1929);
}

.service-detail__inner {
  max-width: 720px;
}

.service-detail__lead {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
}

.service-detail__body {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.service-detail__area {
  background: var(--bg-panel, rgba(0,102,204,0.08));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.service-detail__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-detail__bullets li {
  font-size: var(--text-base);
  color: var(--text-2);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}

.service-detail__bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
