/* =====================================================================
   HEDGEHOG WAY OF FINANCE — "QUILL" DESIGN SYSTEM
   Futuristic / institutional. Aurora atmospherics, HUD glass, mono data.
   ===================================================================== */

/* ========== THEME TOKENS ========== */
:root,
[data-theme="dark"] {
  --bg: #060A14;
  --bg-elevated: #0C1424;
  --bg-section: #060A14;
  --bg-section-alt: #08101E;
  --bg-footer: #04070E;
  --text: #C7D3E3;
  --text-muted: rgba(199, 211, 227, 0.66);
  --text-subtle: rgba(199, 211, 227, 0.44);
  --heading: #FFFFFF;
  --heading-soft: #93A5BD;
  --border: rgba(140, 200, 235, 0.09);
  --border-strong: rgba(140, 200, 235, 0.18);

  --glass-bg: linear-gradient(155deg, rgba(20, 32, 54, 0.72) 0%, rgba(8, 15, 28, 0.86) 100%);
  --glass-edge: linear-gradient(150deg, rgba(20, 224, 160, 0.30) 0%, rgba(65, 214, 242, 0.14) 34%, rgba(255, 255, 255, 0.05) 62%, rgba(139, 123, 255, 0.16) 100%);
  --glass-edge-hover: linear-gradient(150deg, rgba(20, 224, 160, 0.75) 0%, rgba(65, 214, 242, 0.45) 40%, rgba(139, 123, 255, 0.45) 100%);
  --glass-border: rgba(140, 200, 235, 0.10);
  --glass-hover-border: rgba(20, 224, 160, 0.4);
  --glass-hover-shadow: 0 22px 60px -18px rgba(20, 224, 160, 0.28), 0 0 0 1px rgba(20, 224, 160, 0.06);

  --nav-bg: transparent;
  --nav-scrolled: rgba(6, 10, 20, 0.72);
  --nav-border: transparent;
  --nav-scrolled-border: rgba(140, 200, 235, 0.12);
  --nav-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.7);

  --input-bg: rgba(6, 12, 24, 0.72);
  --input-border: rgba(140, 200, 235, 0.14);
  --input-text: #F4F7FA;
  --input-placeholder: rgba(199, 211, 227, 0.32);

  --scrollbar-track: #060A14;
  --scrollbar-thumb: #1B2740;

  --accent: #14E0A0;
  --accent-soft: #5BF0C2;
  --accent-deep: #0BB985;
  --accent-2: #41D6F2;
  --accent-3: #8B7BFF;

  --grid-line: rgba(140, 200, 235, 0.055);
  --aurora-1: rgba(20, 224, 160, 0.16);
  --aurora-2: rgba(65, 214, 242, 0.13);
  --aurora-3: rgba(139, 123, 255, 0.12);
  --mesh-glow: rgba(20, 224, 160, 0.06);

  --tab-text: rgba(199, 211, 227, 0.72);
  --tab-border: rgba(140, 200, 235, 0.14);
  --tab-active-bg: rgba(20, 224, 160, 0.13);
  --tab-active-text: #5BF0C2;
  --tab-active-border: rgba(20, 224, 160, 0.5);

  --icon-bg: rgba(20, 224, 160, 0.12);
  --icon-border: rgba(20, 224, 160, 0.22);
  --chip-border: rgba(140, 200, 235, 0.14);
  --chip-text: rgba(199, 211, 227, 0.88);

  --theme-btn-bg: rgba(140, 200, 235, 0.07);
  --theme-btn-border: rgba(140, 200, 235, 0.14);
  --theme-btn-hover: rgba(20, 224, 160, 0.16);
  --mobile-menu-bg: rgba(6, 10, 20, 0.97);

  --hero-overlay:
    linear-gradient(102deg, rgba(4, 7, 14, 0.97) 0%, rgba(5, 9, 18, 0.92) 34%, rgba(6, 10, 20, 0.62) 62%, rgba(6, 10, 20, 0.34) 100%),
    linear-gradient(to top, rgba(4, 7, 14, 0.97) 0%, rgba(4, 7, 14, 0.42) 32%, transparent 58%),
    linear-gradient(to bottom, rgba(4, 7, 14, 0.6) 0%, transparent 26%);
  --hero-vignette: radial-gradient(ellipse 85% 75% at 72% 42%, transparent 0%, rgba(2, 4, 9, 0.6) 100%);
  --hero-photo-filter: saturate(0.85) contrast(1.06) brightness(0.92);

  --selection-bg: rgba(20, 224, 160, 0.35);
  --selection-color: #04070E;
  --trust-border: rgba(140, 200, 235, 0.1);
  --founder-card: linear-gradient(160deg, rgba(22, 34, 58, 0.9) 0%, rgba(7, 13, 25, 0.96) 100%);
  --mono-watermark: rgba(140, 200, 235, 0.045);

  --mascot-face: #F6EFE2;
  --mascot-face-2: #E5D8C4;
  --mascot-ink: #0A1119;
  --mascot-blush: rgba(255, 138, 160, 0.5);
  --mascot-tongue: #E0687F;
  --mascot-quill-a: #3A4E68;
  --mascot-quill-b: #0BB985;
  --mascot-quill-c: #1B2536;
  --mascot-suit: #333B49;
  --mascot-suit-dark: #232A35;
  --mascot-lapel: #3D4655;
  --mascot-trouser: #3A424F;
  --mascot-shirt: #F8FAFC;
  --mascot-shirt-2: #E4EAF1;
  --mascot-belt: #171C24;
  --mascot-buckle: #8D97A6;
  --mascot-shoe: #0F131A;
  --mascot-sole: #2B333F;
  --mascot-shoe-hi: #39424F;
  --mascot-frame: #101620;
  --mascot-case: #1A202A;
  --mascot-case-edge: #39424F;
  --mascot-gold: #C9A85F;
}

[data-theme="light"] {
  --bg: #F4F6FB;
  --bg-elevated: #FFFFFF;
  --bg-section: #F4F6FB;
  --bg-section-alt: #FFFFFF;
  --bg-footer: #060A14;
  --text: #28374D;
  --text-muted: #3B4C66;
  --text-subtle: #5E6E86;
  --heading: #060A14;
  --heading-soft: #4A5C77;
  --border: rgba(6, 10, 20, 0.1);
  --border-strong: rgba(6, 10, 20, 0.16);

  --glass-bg: linear-gradient(155deg, #FFFFFF 0%, #F7F9FD 100%);
  --glass-edge: linear-gradient(150deg, rgba(7, 145, 105, 0.34) 0%, rgba(26, 169, 201, 0.2) 40%, rgba(6, 10, 20, 0.08) 100%);
  --glass-edge-hover: linear-gradient(150deg, rgba(7, 145, 105, 0.7) 0%, rgba(26, 169, 201, 0.5) 45%, rgba(107, 92, 224, 0.4) 100%);
  --glass-border: rgba(6, 10, 20, 0.1);
  --glass-hover-border: rgba(7, 145, 105, 0.42);
  --glass-hover-shadow: 0 22px 50px -20px rgba(6, 10, 20, 0.22);

  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-scrolled: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(6, 10, 20, 0.08);
  --nav-scrolled-border: rgba(6, 10, 20, 0.12);
  --nav-shadow: 0 8px 30px -10px rgba(6, 10, 20, 0.16);

  --input-bg: #FFFFFF;
  --input-border: rgba(6, 10, 20, 0.14);
  --input-text: #060A14;
  --input-placeholder: #7C8798;

  --scrollbar-track: #E7EBF2;
  --scrollbar-thumb: #A6B0C0;

  --accent: #079169;
  --accent-soft: #0BB985;
  --accent-deep: #056B4E;
  --accent-2: #1387A3;
  --accent-3: #6B5CE0;

  --grid-line: rgba(6, 10, 20, 0.045);
  --aurora-1: rgba(7, 145, 105, 0.13);
  --aurora-2: rgba(26, 169, 201, 0.11);
  --aurora-3: rgba(107, 92, 224, 0.09);
  --mesh-glow: rgba(7, 145, 105, 0.08);

  --tab-text: #3B4C66;
  --tab-border: rgba(6, 10, 20, 0.12);
  --tab-active-bg: rgba(7, 145, 105, 0.1);
  --tab-active-text: #056B4E;
  --tab-active-border: rgba(7, 145, 105, 0.45);

  --icon-bg: rgba(7, 145, 105, 0.1);
  --icon-border: rgba(7, 145, 105, 0.2);
  --chip-border: rgba(6, 10, 20, 0.12);
  --chip-text: #28374D;

  --theme-btn-bg: #FFFFFF;
  --theme-btn-border: rgba(6, 10, 20, 0.14);
  --theme-btn-hover: rgba(7, 145, 105, 0.1);
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);

  --hero-overlay:
    linear-gradient(102deg, rgba(244, 246, 251, 0.98) 0%, rgba(244, 246, 251, 0.94) 36%, rgba(244, 246, 251, 0.5) 64%, rgba(244, 246, 251, 0.12) 100%),
    linear-gradient(to top, rgba(244, 246, 251, 0.92) 0%, rgba(244, 246, 251, 0.3) 28%, transparent 52%);
  --hero-vignette: radial-gradient(ellipse 85% 75% at 72% 42%, transparent 0%, rgba(6, 10, 20, 0.08) 100%);
  --hero-photo-filter: saturate(1.02) contrast(1.02) brightness(1.02);

  --selection-bg: rgba(7, 145, 105, 0.28);
  --selection-color: #060A14;
  --trust-border: rgba(6, 10, 20, 0.1);
  --founder-card: linear-gradient(160deg, #FFFFFF 0%, #EEF3F9 100%);
  --mono-watermark: rgba(6, 10, 20, 0.04);

  --mascot-face: #FBF5EA;
  --mascot-face-2: #EADFCB;
  --mascot-ink: #10192A;
  --mascot-blush: rgba(240, 120, 145, 0.45);
  --mascot-tongue: #D9556E;
  --mascot-quill-a: #45596F;
  --mascot-quill-b: #079169;
  --mascot-quill-c: #26334A;
  --mascot-suit: #3C4553;
  --mascot-suit-dark: #2A313D;
  --mascot-lapel: #48525F;
  --mascot-trouser: #454E5C;
  --mascot-shirt: #FFFFFF;
  --mascot-shirt-2: #E9EEF4;
  --mascot-belt: #1E242C;
  --mascot-buckle: #9AA4B2;
  --mascot-shoe: #191E26;
  --mascot-sole: #3A424E;
  --mascot-shoe-hi: #4A5462;
  --mascot-frame: #1A212B;
  --mascot-case: #242B36;
  --mascot-case-edge: #4B5563;
  --mascot-gold: #B8944D;
}

/* ========== BASE ========== */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-padding-top: 96px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

::selection { background: var(--selection-bg); color: var(--selection-color); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-deep), var(--scrollbar-thumb));
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

.font-display { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.022em; }
.font-mono-hf { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ========== TYPE UTILITIES ========== */
.t-heading { color: var(--heading); }
.t-heading-soft { color: var(--heading-soft); }
.t-muted { color: var(--text-muted); }
.t-subtle { color: var(--text-subtle); }
.t-accent { color: var(--accent); }
/* The light accent (#079169) is 3.99:1 on white — just under AA for the 12px
   eyebrow labels. The deeper token clears 6:1 without leaving the palette. */
[data-theme="light"] .t-accent { color: var(--accent-deep); }

.accent-line {
  display: block;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 12px var(--accent);
  flex: none;
}

.num-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.grad-text {
  background: linear-gradient(115deg, var(--accent) 0%, var(--accent-2) 48%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ========== ATMOSPHERE: GRID + AURORA ========== */
.section-mesh, .section-alt { position: relative; isolation: isolate; }
.section-alt { background-color: var(--bg-section-alt); }

.section-mesh::before,
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.section-mesh::after,
.section-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(48rem 26rem at 12% 8%, var(--aurora-1), transparent 62%),
    radial-gradient(42rem 24rem at 88% 30%, var(--aurora-2), transparent 62%),
    radial-gradient(38rem 22rem at 50% 100%, var(--aurora-3), transparent 65%);
  opacity: 0.75;
  pointer-events: none;
}

/* Content always sits above the grid + aurora layers. */
.section-mesh > *,
.section-alt > * {
  position: relative;
  z-index: 1;
}

.border-theme { border-color: var(--border) !important; }
/* ========== NAVIGATION ========== */
#navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: var(--nav-scrolled);
  border-bottom-color: var(--nav-scrolled-border);
  box-shadow: var(--nav-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
/* Scroll progress hairline under the nav */
#navbar::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  box-shadow: 0 0 14px var(--accent);
  transition: width 0.12s linear;
  pointer-events: none;
}

.logo-word { color: var(--heading); font-family: "Space Grotesk", system-ui, sans-serif; }
.logo-sub {
  color: var(--text-subtle);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.18em;
}

.logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 120%);
  box-shadow: 0 6px 22px -6px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  flex: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.logo-mark .hh-img-wrap,
.mascot-dock-btn .hh-img-wrap {
  display: block;
  width: 100%;
  height: 100%;
}
.logo-mark .hh-img,
.mascot-dock-btn .hh-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.55) 50%, transparent 66%);
  transform: translateX(-140%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .logo-mark { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 10px 30px -6px var(--accent); }
.group:hover .logo-mark::after { transform: translateX(140%); }

/* Keep the lockup on one line and let it breathe at tighter desktop widths. */
@media (min-width: 640px) {
  .logo-word { white-space: nowrap; }
  .logo-sub { white-space: nowrap; }
}
@media (max-width: 639px) {
  .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
  .logo-word { font-size: 0.95rem; line-height: 1.2; }
}
#navbar .btn-primary { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1399px) {
  .logo-mark { width: 38px; height: 38px; border-radius: 12px; }
  .logo-word { font-size: 1rem; }
  .logo-sub { display: none; }
  #navbar nav[aria-label="Primary"] { gap: 1.25rem; }
  #navbar .btn-primary { padding-left: 1rem; padding-right: 1rem; font-size: 0.8rem; }
}

/* The client file: its link never wraps, and reads as a way in rather than a section. */
#navbar .nav-link, #navbar .mobile-nav-link { white-space: nowrap; }
#navbar .nav-link.nav-client {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--heading);
}
#navbar .nav-link.nav-client::after { display: none; }
#navbar .nav-link.nav-client:hover { border-color: var(--accent); color: var(--accent); }
/* the article and 404 pages: an Open Client File button in the header where it fits beside the other two */
@media (min-width: 1024px) { #navbar .btn-outline { white-space: nowrap; } }
/* 640-1023px: the header's Back to Insights pushed Begin a Conversation off the edge, or wrapped; the article's own link stays */
@media (min-width: 640px) and (max-width: 1023px) { #navbar a.btn-outline[href="/#insights"], #navbar a.btn-outline[href="index.html#insights"] { display: none; } }
/* The long legal name under the lockup: tailwind.css loads after this sheet, so its sm:block won over the plain
   .logo-sub rules above and the name showed at every width, crowding the header (the menu button ran off at 640px,
   Begin a Conversation at 1024px and, with the client-file link, 1440px). Held back by id, up to 1599px. */
@media (min-width: 640px) and (max-width: 1599px) { #navbar .logo-sub { display: none; } }
@media (min-width: 1400px) and (max-width: 1599px) { #navbar nav[aria-label="Primary"] { gap: 1.5rem; } }
/* 640-767px: the compact Begin a Conversation, as at 1024-1399px, so the menu button stays on screen */
@media (min-width: 640px) and (max-width: 767px) { #navbar .btn-primary { padding-left: 1rem; padding-right: 1rem; font-size: 0.8rem; } }
.hdr-client { display: none; }
@media (min-width: 1200px) { .hdr-client { display: inline-flex; } }
/* Below about 1300px the full row of links does not fit beside the lockup and the buttons (at 1024px
   "Begin a Conversation" ran off the edge): the menu button and its menu serve until 1320px. */
@media (min-width: 1024px) and (max-width: 1319px) {
  #navbar nav[aria-label="Primary"] { display: none; }
  #navbar #menu-toggle { display: inline-flex; }
  #navbar #mobile-menu { display: block; }
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  padding: 6px 2px;
  transition: color 0.28s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover { color: var(--heading); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent); }

.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-btn-bg);
  border: 1px solid var(--theme-btn-border);
  color: var(--text-muted);
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.theme-toggle:hover {
  background: var(--theme-btn-hover);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

/* An open mobile menu makes the whole bar opaque, whatever the scroll position. */
#navbar.menu-open {
  background: var(--mobile-menu-bg);
  border-bottom-color: var(--nav-scrolled-border);
  box-shadow: var(--nav-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top-color: transparent;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, border-color 0.3s ease;
}
#mobile-menu.open {
  max-height: 480px;
  opacity: 1;
  border-top-color: var(--border);
}
.mobile-nav-link { color: var(--text-muted); }
.mobile-nav-link:hover { color: var(--accent); background: var(--icon-bg); }

/* ========== BUTTONS ========== */
.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--accent) 45%, var(--accent-2) 100%);
  box-shadow: 0 10px 30px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #03130E;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, filter 0.32s ease;
}
[data-theme="light"] .btn-primary { color: #FFFFFF; }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px var(--accent);
  filter: saturate(1.1);
}
.btn-primary:hover::before { transform: translateX(130%); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  position: relative;
  color: var(--heading);
  background: transparent;
  border: 1px solid var(--border-strong);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--icon-bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -14px var(--accent);
}

/* ========== GLASS / HUD CARDS ========== */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid transparent;
  background-clip: padding-box;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 2px 20px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease;
}
/* gradient hairline edge */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.42s ease, opacity 0.42s ease;
}
.glass:hover { box-shadow: var(--glass-hover-shadow); }
.glass:hover::before { background: var(--glass-edge-hover); }

/* corner HUD ticks */
.hud::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 14px; height: 14px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  border-radius: 0 5px 0 0;
  opacity: 0.35;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.hud:hover::after { opacity: 1; transform: translate(2px, -2px); }

.icon-tile {
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease;
}
.glass:hover .icon-tile,
.service-card:hover .icon-tile {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 24px -4px var(--accent);
}

.chip {
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  background: var(--icon-bg);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ========== HERO ========== */
/*
 * Two zones on desktop: type on the left, the family photograph bleeding
 * off the right edge. On tablet and below the two stack.
 */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
}
@media (min-width: 1024px) {
  .hero {
    display: block;
    min-height: 100svh;
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 26% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 26% 45%, #000 10%, transparent 75%);
  pointer-events: none;
}

.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(38rem 26rem at 18% 26%, var(--aurora-1), transparent 60%),
    radial-gradient(34rem 24rem at 62% 12%, var(--aurora-2), transparent 62%),
    radial-gradient(30rem 22rem at 34% 88%, var(--aurora-3), transparent 62%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
}

/* ---- Photograph ---- */
.hero-media {
  position: relative;
  z-index: 1;
  width: 100%;
  order: 2;
  padding: 0 1.25rem 2rem;
}
@media (min-width: 1024px) {
  .hero-media {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 54%;
    height: 100%;
    padding: 0;
    order: unset;
  }
}
@media (min-width: 1280px) { .hero-media { width: 52%; } }

.hero-media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 4 / 5;
  max-height: min(66vh, 560px);
}
@media (min-width: 1024px) {
  .hero-media-frame {
    border-radius: 0;
    aspect-ratio: auto;
    max-height: none;
    min-height: 100svh;
  }
}
.hero-media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: var(--hero-photo-filter);
}
.hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--hero-overlay), var(--hero-vignette);
}
/* a slow light bar travelling down the photograph */
.hero-media-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 26%;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, var(--aurora-2) 50%, transparent 100%);
  opacity: 0;
  animation: heroScan 11s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  pointer-events: none;
}
@keyframes heroScan {
  0%   { transform: translateY(-60%); opacity: 0; }
  18%  { opacity: 0.55; }
  82%  { opacity: 0.25; }
  100% { transform: translateY(420%); opacity: 0; }
}

/* =====================================================================
   FULL-BLEED HERO MOTION
   The video sits behind the entire hero rather than in a right-hand
   column, because a 16:9 clip cropped into a portrait slot loses most of
   the frame. The scrim below does the heavy lifting: type has to stay
   readable over imagery that is moving and light.
   ===================================================================== */

.hero-has-video .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  order: unset;
  z-index: 0;
}

.hero-has-video .hero-media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pushed right and up so the clip's lower-right corner falls outside the
     frame; that is also where a generator watermark tends to sit. */
  object-position: 42% 38%;
  filter: var(--hero-photo-filter);
}

/* Scrim. Dark from the left for the copy, dark from the bottom so the stats
   row and Quill sit on something solid, plus an overall knock-down so the
   warm footage cannot fight the mint accents. */
.hero-has-video .hero-media-overlay {
  background:
    linear-gradient(100deg,
      rgba(4, 7, 14, 0.96) 0%,
      rgba(4, 7, 14, 0.90) 28%,
      rgba(5, 9, 18, 0.66) 52%,
      rgba(6, 10, 20, 0.42) 78%,
      rgba(6, 10, 20, 0.38) 100%),
    linear-gradient(to top,
      rgba(4, 7, 14, 0.94) 0%,
      rgba(4, 7, 14, 0.45) 26%,
      transparent 55%),
    linear-gradient(to bottom,
      rgba(4, 7, 14, 0.72) 0%,
      transparent 22%);
}

[data-theme="light"] .hero-has-video .hero-media-overlay {
  background:
    linear-gradient(100deg,
      rgba(244, 246, 251, 0.97) 0%,
      rgba(244, 246, 251, 0.92) 30%,
      rgba(244, 246, 251, 0.66) 54%,
      rgba(244, 246, 251, 0.40) 80%,
      rgba(244, 246, 251, 0.36) 100%),
    linear-gradient(to top,
      rgba(244, 246, 251, 0.90) 0%,
      rgba(244, 246, 251, 0.35) 26%,
      transparent 56%);
}

/* The type column no longer shares the row with a photo, so it can breathe. */
@media (min-width: 1024px) {
  .hero-has-video .hero-inner {
    width: 62%;
    max-width: 62%;
  }
}
@media (min-width: 1280px) {
  .hero-has-video .hero-inner {
    width: 56%;
    max-width: 56%;
  }
}

/* On phones the video still covers the whole hero; the copy sits on top of a
   heavier scrim rather than the clip being stacked underneath. */
@media (max-width: 1023px) {
  .hero-has-video .hero-media { opacity: 1; }
  .hero-has-video .hero-inner { position: relative; z-index: 2; }
  .hero-has-video .hero-media-overlay {
    background:
      linear-gradient(to top,
        rgba(4, 7, 14, 0.96) 0%,
        rgba(4, 7, 14, 0.70) 40%,
        rgba(4, 7, 14, 0.52) 100%);
  }
  [data-theme="light"] .hero-has-video .hero-media-overlay {
    background:
      linear-gradient(to top,
        rgba(244, 246, 251, 0.95) 0%,
        rgba(244, 246, 251, 0.78) 40%,
        rgba(244, 246, 251, 0.62) 100%);
  }
}

/* No motion preference: the poster is the hero, full stop. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-has-video .hero-media-frame {
    background: url("hero-poster.jpg") center 38% / cover no-repeat;
  }
}

/* Over moving imagery the ghost button loses its edge, so give it a base.
   Same treatment both themes; the token flips the colour. */
.hero-has-video .hero-actions .btn-outline {
  background: var(--glass-bg);
  border-color: var(--border-strong);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}

/* The navbar sits on the clip until the page scrolls; lift it off. */
.hero-has-video ~ * #navbar,
body:has(.hero-has-video) #navbar:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(4, 7, 14, 0.62), transparent);
}
[data-theme="light"] body:has(.hero-has-video) #navbar:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(244, 246, 251, 0.86), rgba(244, 246, 251, 0.25));
}

/* The legal-name eyebrow is ~15px wider than the copy column on desktop; let
   it run past rather than break "PRIVATE / LIMITED" onto a second line. */
@media (min-width: 1024px) {
  .hero-label { white-space: nowrap; }
}

/* ---- Skip link: first Tab stop on every page, invisible until focused ---- */
.skip-link {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #04110B;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid var(--heading);
  outline-offset: 3px;
}

/* ---- Type zone ---- */
.hero-inner {
  position: relative;
  z-index: 2;
  order: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 8.5rem 1.25rem 2.5rem;
}
@media (min-width: 640px) { .hero-inner { padding: 9rem 2rem 3rem; } }
@media (min-width: 1024px) {
  .hero-inner {
    display: flex;
    align-items: center;
    width: 50%;
    max-width: 50%;
    min-height: 100svh;
    padding: 6.5rem 2.5rem 4rem;
  }
}
@media (min-width: 1280px) {
  .hero-inner {
    width: 48%;
    max-width: 48%;
    padding: 7rem 3rem 4.5rem 4rem;
  }
}
@media (min-width: 1600px) {
  .hero-inner { padding-left: 6rem; }
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 34rem;
  min-width: 0;
}
@media (min-width: 1024px) { .hero-copy { max-width: 32rem; } }
@media (min-width: 1280px) { .hero-copy { max-width: 34rem; } }

.hero-label {
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
}

.hero-tagline {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero-tagline .line { display: block; }
.hero-title { color: var(--heading); }
.hero-title-soft { color: var(--heading-soft); }
.hero-title-accent {
  background: linear-gradient(104deg, var(--accent) 0%, var(--accent-2) 46%, var(--accent-3) 96%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradSlide 9s ease-in-out infinite alternate;
}
@keyframes gradSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-lead {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 480px) { .hero-actions { gap: 1rem; } }
.hero-actions .btn-primary,
.hero-actions .btn-outline {
  white-space: nowrap;
  flex: 0 0 auto;
}
@media (max-width: 479px) {
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    font-size: 0.75rem;
  }
  .hero-actions .btn-primary svg { display: none; }
}

.hero-trust { border-top: 1px solid var(--trust-border); }
.hero-stat-label {
  color: var(--text-muted); /* --text-subtle was 3.2:1 on the page: under WCAG AA for text this size */
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.1em;
}

/* ========== SERVICES ========== */
.cat-tab {
  color: var(--tab-text);
  border-color: var(--tab-border);
  background: transparent;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.cat-tab:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.cat-tab.active {
  color: var(--tab-active-text);
  border-color: var(--tab-active-border);
  background: var(--tab-active-bg);
  box-shadow: 0 0 22px -6px var(--accent), inset 0 0 18px -12px var(--accent);
}

.service-panel { display: none; }
.service-panel.active { display: block; animation: panelIn 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-card {
  position: relative;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease;
}
/* radial cursor spotlight */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(16rem 16rem at var(--mx, 50%) var(--my, 0%), var(--mesh-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover { box-shadow: var(--glass-hover-shadow); }

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.72;
  transition: opacity 0.3s ease, gap 0.3s ease;
}
.service-card:hover .service-card-cta { opacity: 1; gap: 0.7rem; }

/* ========== APPROACH / PROCESS ========== */
.process-step {
  position: relative;
  overflow: hidden;
}
.process-step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-step:hover::before { transform: scaleY(1); }
.process-step:hover { transform: translateY(-4px); }

.process-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(130deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.9;
}

/* ========== ABOUT ========== */
.founder-panel {
  position: relative;
  background: var(--founder-card);
  border: 1px solid var(--border-strong);
}
.founder-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.founder-watermark {
  color: var(--mono-watermark);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -0.06em;
}

/* ========== TESTIMONIALS ========== */
.testimonial-quote {
  color: var(--heading-soft);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.012em;
}
[data-theme="light"] .testimonial-quote { color: var(--text); }
@media (min-width: 640px) {
  .testimonial-quote { font-size: 1.28rem; }
}

/* ========== FAQ ========== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--glass-bg);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open {
  border-color: var(--glass-hover-border);
  box-shadow: 0 14px 40px -22px var(--accent);
}
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--heading);
  background: transparent;
  cursor: pointer;
  transition: color 0.3s ease;
}
.faq-btn:hover { color: var(--accent); }
.faq-icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-icon { transform: rotate(135deg); }
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-panel { max-height: 460px; }
.faq-panel-inner {
  padding: 0 1.35rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.72;
  font-weight: 300;
}

/* ========== FORMS ========== */
.form-label {
  /* --text-subtle was 3.2:1 on the form panel; muted clears 4.5:1 in both themes. */
  color: var(--text-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.form-input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.form-input::placeholder { color: var(--input-placeholder); }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--icon-bg), 0 0 22px -8px var(--accent);
}
.form-input.invalid { border-color: #F87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12); }

/* ========== SERVICE DRAWER ========== */
.svc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 5, 11, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.svc-backdrop.open { opacity: 1; }

.svc-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 100;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.8);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="light"] .svc-drawer { background: #FFFFFF; }
.svc-drawer.open { transform: translateX(0); }

@media (max-width: 640px) {
  .svc-drawer {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 88vh;
    border-left: none;
    border-top: 1px solid var(--border-strong);
    border-radius: 1.4rem 1.4rem 0 0;
    transform: translateY(100%);
  }
  .svc-drawer.open { transform: translateY(0); }
  .svc-drawer-handle { display: flex; }
}

.svc-drawer-handle {
  display: none;
  justify-content: center;
  padding: 0.7rem 0 0.2rem;
}
.svc-drawer-handle span {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: var(--border-strong);
}

.svc-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(26rem 10rem at 0% 0%, var(--aurora-1), transparent 70%),
    transparent;
}
.svc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.6rem 1.5rem 1.75rem;
}
.svc-drawer-footer {
  padding: 1.15rem 1.5rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
[data-theme="light"] .svc-drawer-footer { background: #FFFFFF; }

.svc-close {
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid var(--theme-btn-border);
  background: var(--theme-btn-bg);
  color: var(--text-muted);
  transition: color 0.28s ease, border-color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}
.svc-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--icon-bg);
  transform: rotate(90deg);
}

.svc-badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--tab-active-border);
  background: var(--tab-active-bg);
  color: var(--tab-active-text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.svc-section-title {
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.svc-do-list, .svc-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.svc-do-list li, .svc-benefit-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.svc-do-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(45deg);
}
.svc-benefit-list li::before {
  content: "+";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  background: var(--bg-footer);
  overflow: hidden;
  isolation: isolate;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(46rem 20rem at 10% 0%, rgba(20, 224, 160, 0.1), transparent 62%),
    radial-gradient(40rem 18rem at 88% 20%, rgba(65, 214, 242, 0.08), transparent 64%);
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 70%, transparent);
  opacity: 0.5;
}
.site-footer > * { position: relative; z-index: 1; }

.footer-heading {
  color: rgba(244, 247, 250, 0.85);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.footer-link {
  color: rgba(185, 196, 212, 0.62);
  transition: color 0.28s ease, padding-left 0.28s ease;
}
.footer-link:hover { color: var(--accent-soft); padding-left: 4px; }
/* 0.62 alpha on the footer navy is 4.9:1; 0.55 was 3.98:1 and failed AA. */
.footer-muted { color: rgba(185, 196, 212, 0.62); }

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
/* =====================================================================
   QUILL — THE MASCOT
   The official 3D artwork, used exactly as supplied — never redrawn.
   ===================================================================== */

.hh-img-wrap { display: block; }

/* Cursor-follow owns the transform on the <img>; nothing else may animate it. */
.hh-img,
.logo-mark .hh-img,
.mascot-dock-btn .hh-img {
  transform-origin: 50% 60%;
  will-change: transform;
  transition: transform 0.12s linear;
}

.hh-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Hero companion ---------- */
.mascot-hero {
  position: absolute;
  z-index: 3;
  right: clamp(0.75rem, 3.5vw, 3.25rem);
  bottom: clamp(1rem, 4vh, 3rem);
  width: clamp(104px, 10.5vw, 158px);
  pointer-events: none;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.45));
}
.mascot-hero .hh-plinth {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 74%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent), transparent 72%);
  opacity: 0.4;
  filter: blur(6px);
  animation: hhPlinth 6.5s ease-in-out infinite;
}
@keyframes hhPlinth {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.4; }
  50%      { transform: translateX(-50%) scaleX(0.84); opacity: 0.22; }
}
@media (max-width: 1023px) { .mascot-hero { display: none; } }

/* speech tag beside the hero mascot */
.mascot-tag {
  position: absolute;
  top: -6%;
  right: 86%;
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  border-radius: 999px 999px 999px 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-hover-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px -14px var(--accent);
  animation: hhTag 6.5s ease-in-out infinite;
}
@keyframes hhTag {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ---------- Section mascot (approach) ---------- */
.mascot-inline {
  width: clamp(104px, 12vw, 148px);
  flex: none;
}

/* Quill standing beside a section heading, desktop only. */
.mascot-aside { display: none; }
@media (min-width: 1024px) {
  .mascot-aside {
    display: block;
    width: clamp(126px, 12.5vw, 176px);
    flex: none;
    margin-left: auto;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.35));
  }
}

/* Quill tucked in beside the contact details. */
.mascot-note {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.mascot-note .hh-img-wrap { width: clamp(84px, 9.5vw, 112px); flex: none; }

/* ---------- Floating guide (bottom-right) ---------- */
.mascot-dock {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 1.75rem);
  bottom: clamp(0.9rem, 2.5vw, 1.75rem);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mascot-dock.shown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.mascot-dock-btn {
  position: relative;
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--glass-hover-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px -14px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.mascot-dock-btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 20px 44px -14px var(--accent); }
.mascot-dock-btn::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: hhPing 3.2s ease-out infinite;
  pointer-events: none;
}
@keyframes hhPing {
  0%   { transform: scale(0.92); opacity: 0.5; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.mascot-bubble {
  position: relative;
  max-width: min(19rem, 62vw);
  padding: 0.8rem 1rem;
  border-radius: 1rem 1rem 4px 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.mascot-dock.open .mascot-bubble { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mascot-bubble b {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .mascot-dock-btn { width: 54px; height: 54px; }
}

/* Decorative motion is paused whenever its section is off-screen. */
.anim-paused,
.anim-paused *,
.anim-paused *::before,
.anim-paused *::after {
  animation-play-state: paused !important;
}

/* ========== MOTION PREFERENCES ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .animate-fade-up { opacity: 1 !important; }
}

/* =====================================================================
   ARTICLE PAGES
   ===================================================================== */

.article-prose h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--heading);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin: 2.75rem 0 1rem;
}
.article-prose h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.15rem 0 0.75rem;
}
.article-prose p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.82;
  margin-bottom: 1.25rem;
}
.article-prose ul {
  margin: 0 0 1.35rem 0;
  padding: 0;
  color: var(--text-muted);
  list-style: none;
}
.article-prose li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 1.5rem;
  line-height: 1.75;
  list-style: none;
}
.article-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(45deg);
}
.article-prose strong { color: var(--heading); font-weight: 600; }
.article-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-prose blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-left: 2px solid var(--accent);
  color: var(--heading-soft);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.12rem;
  line-height: 1.65;
}
[data-theme="light"] .article-prose blockquote { color: var(--text); }

.callout {
  position: relative;
  margin: 2.25rem 0;
  padding: 1.35rem 1.6rem;
  border-radius: 1.1rem;
  border: 1px solid transparent;
  background: var(--glass-bg);
  background-clip: padding-box;
}
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* The article header bar is always solid — there is no hero behind it. */
.article-page #navbar {
  background: var(--nav-scrolled);
  border-bottom: 1px solid var(--nav-scrolled-border);
  box-shadow: var(--nav-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

/* Audit fixes, 30 Sep 2026: the hero line in the light theme to AA contrast, and footer links a full 24px target (WCAG 2.5.8). */
[data-theme="light"] .hero-label { color: #046B4D; }
footer a.inline-flex { min-height: 24px; align-items: center; }
footer h2.footer-heading { font-size: 0.75rem; line-height: 1rem; }
