/* JMO|Partners shared CSS for insights + resources subpages.
   The home page (index.html) is self-contained with its own <style>;
   this file mirrors the brand variables and the components reused here.
*/
@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg:           #0a0612;
  --surface:      #15101f;
  --surface-2:    #1d1729;
  --border:       rgba(255,255,255,0.08);
  --border-strong:rgba(255,255,255,0.16);
  --text:         #ffffff;
  --text-mute:    rgba(255,255,255,0.78);
  --text-faint:   rgba(255,255,255,0.62);
  --purple-rgb:   183, 148, 244;
  --purple:       rgb(var(--purple-rgb));
  --purple-bright:#d6bcfa;
  --purple-soft:  rgba(var(--purple-rgb), 0.14);
  --purple-line:  rgba(var(--purple-rgb), 0.32);
  --peach-rgb:    251, 184, 154;
  --peach:        rgb(var(--peach-rgb));
  --peach-bright: #fdd0b8;
  --peach-soft:   rgba(var(--peach-rgb), 0.14);
  --blue:         var(--purple);
  --blue-bright:  var(--purple-bright);
  --blue-soft:    var(--purple-soft);
  --blue-line:    var(--purple-line);
  --radius-sm: 8px;
  --radius:    14px;
  --ease-out:  cubic-bezier(0.2, 0.7, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* hidden creates a scrolling container that breaks position:sticky in
     Telegram's WKWebView and other older webviews. clip suppresses horizontal
     scroll the same way but doesn't create a scroll container. Modern browsers
     use clip; older ones ignore it and fall back to hidden above. */
  overflow-x: hidden;
  overflow-x: clip;
  letter-spacing: -0.005em;
}
.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; will-change: transform; }
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(var(--purple-rgb), 0.24), transparent 65%); top: -200px; left: -200px; animation: drift-1 28s ease-in-out infinite alternate; }
.orb-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(var(--peach-rgb), 0.14), transparent 65%); bottom: -150px; right: -150px; animation: drift-2 36s ease-in-out infinite alternate; }
.orb-3 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(var(--purple-rgb), 0.12), transparent 60%); top: 40%; left: 50%; animation: drift-3 42s ease-in-out infinite alternate; }

@keyframes drift-1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(120px,80px) scale(1.15); } }
@keyframes drift-2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-80px,-60px) scale(1.1); } }
@keyframes drift-3 { 0% { transform: translate(-50%,0) scale(1); } 100% { transform: translate(-30%,100px) scale(1.2); } }

@keyframes rise-word { to { opacity: 1; transform: translateY(0); } }
body::after {
  content: ''; position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none; z-index: 0;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 700px){ .container { padding: 0 28px; } }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
a { color: inherit; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-bright);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 14px; text-decoration: none;
  transition: all 0.25s var(--ease-out); cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
}
.btn-primary { background: var(--purple); color: var(--bg); box-shadow: 0 4px 16px rgba(var(--purple-rgb), 0.25), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:hover { background: var(--purple-bright); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.02); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--text-mute); transform: translateY(-2px); }
.btn-nav { padding: 12px 18px; font-size: 13px; }
.arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Nav ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  /* Solid background by default so in-app browsers (Telegram, Instagram, Facebook)
     that don't apply backdrop-filter don't show content bleeding through the nav. */
  background: rgb(5,10,20);
  /* Extend the nav background up into the device safe-area / browser-chrome zone
     so content scrolling under the nav doesn't show through translucent webview chrome. */
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  nav {
    background: rgba(5,10,20,0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.logo .wordmark-img { display: block; height: 22px; width: auto; }
footer .logo .wordmark-img { height: 26px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a:not(.btn) { color: var(--text-mute); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; transition: color 0.2s; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px; background: var(--blue); transition: width 0.3s var(--ease-out); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 100%; }
@media (max-width: 820px){ .nav-links a:not(.btn) { display: none; } .nav-links { margin-left: auto; } }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0; cursor: pointer; position: relative;
}
.nav-toggle span { display: block; position: absolute; width: 18px; height: 1.5px; background: var(--purple); border-radius: 2px; left: 50%; margin-left: -9px; transition: transform 0.3s, top 0.3s, opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 820px) { .nav-toggle { display: inline-block; } }

.mobile-menu {
  position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 99;
  background: rgba(10,6,18,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px 32px; transform: translateY(-100%); transition: transform 0.3s var(--ease-out); pointer-events: none;
}
.mobile-menu.is-open { transform: translateY(0); pointer-events: auto; }
.mobile-menu .menu-list { list-style: none; }
.mobile-menu .menu-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .menu-list a { color: var(--text); text-decoration: none; font-size: 18px; display: flex; align-items: center; gap: 14px; }
.mobile-menu .menu-list .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--purple-bright); }
.mobile-menu .menu-cta { color: var(--purple-bright); font-weight: 600; }

/* ===== Page header =====
   NOTE: vertical-only padding (longhand) so that when .container is on the
   same element as .page-head, the container's `padding: 0 32px` / `0 28px@700`
   provides horizontal gutters. Shorthand `padding: Tpx 0 Bpx` would reset
   horizontal to 0 and make the headline touch the viewport edges on mobile. */
.page-head { padding-top: 120px; padding-bottom: 80px; position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(40px, 6vw, 76px); max-width: 900px; margin-top: 20px; letter-spacing: -0.045em; line-height: 1.05; text-wrap: balance; }
.page-head .subtitle { color: var(--text-mute); font-size: 18px; max-width: 720px; margin-top: 20px; }
.page-head .peach-rule { width: 64px; height: 2px; background: var(--peach); border: 0; margin: 32px 0 0; }
.page-head .accent { color: var(--peach); }
.page-head .word {
  display: inline-block;
  opacity: 0.001;
  transform: translateY(24px);
  animation: rise-word 0.9s var(--ease-out) forwards;
}
.page-head .eyebrow,
.page-head .subtitle,
.page-head .peach-rule {
  opacity: 0.001;
  animation: rise-word 0.9s var(--ease-out) forwards;
}

@media (max-width: 700px){
  .page-head { padding-top: 88px; padding-bottom: 56px; }
}


/* ===== Card grid ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding: 40px 0 96px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit; transition: all 0.25s var(--ease-out);
}
.card:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-3px); }
.card .eyebrow { font-size: 11px; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
.card .excerpt { color: var(--text-mute); font-size: 14.5px; line-height: 1.55; flex: 1; }
.card .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 8px; border-top: 1px solid var(--border); }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0 0; }
.filters .filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .filter-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; margin-right: 6px; }
.filter-btn {
  background: rgba(255,255,255,0.02); color: var(--text-mute);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-mute); }
.filter-btn.is-active { background: var(--purple); color: var(--bg); border-color: var(--purple); font-weight: 600; }

/* ===== Article ===== */
.article {
  /* Vertical-only padding (longhand) — .container on the same element provides
     horizontal gutters via `padding: 0 32px` / `0 28px@700`. Shorthand here
     would reset horizontal to 0 and let body text touch the viewport edges. */
  max-width: 760px; margin: 0 auto; padding-top: 56px; padding-bottom: 96px; position: relative; z-index: 2;
}
.article .article-head { margin-bottom: 40px; }
.article .article-head .eyebrow { font-size: 11px; }
.article h1 { font-size: clamp(32px, 5vw, 56px); margin: 18px 0 12px; line-height: 1.1; text-wrap: balance; }
.article .subtitle { color: var(--text-mute); font-size: 19px; line-height: 1.5; margin-top: 12px; max-width: 680px; }
.article .byline { color: var(--text-faint); font-size: 13.5px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 24px; }

/* ===== Editorial body treatments (leading-paragraph, pull-quote, section rules) ===== */
.article-body .leading-paragraph {
  font-size: 22px;
  line-height: 1.6;
  color: var(--text);
}
@media (max-width: 700px) {
  .article-body .leading-paragraph { font-size: 19px; line-height: 1.6; }
}

.article-body h2 {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(var(--purple-rgb), 0.12);
}
.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Pull-quote (peach left-bar). House style across all posts. */
.article-body .pull-quote {
  border-left: 3px solid var(--peach);
  padding: 6px 0 8px 28px;
  margin: 44px 0;
}
.article-body .pull-quote p {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}
.article-body .pull-quote::before {
  content: attr(data-eyebrow);
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.article-body .pull-quote[data-eyebrow=""]::before,
.article-body .pull-quote:not([data-eyebrow])::before { display: none; }
@media (max-width: 700px) {
  .article-body .pull-quote { padding-left: 20px; margin: 36px 0; }
  .article-body .pull-quote p { font-size: 20px; }
}

.article .peach-rule { width: 64px; height: 2px; background: var(--peach); border: 0; margin: 24px 0 36px; }

.article-body { color: var(--text-mute); font-size: 17px; line-height: 1.7; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { color: var(--text); font-size: 26px; margin: 44px 0 16px; letter-spacing: -0.02em; }
.article-body h3 { color: var(--text); font-size: 20px; margin: 32px 0 12px; letter-spacing: -0.01em; }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body li { margin: 0 0 8px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--text); }
.article-body a { color: var(--purple-bright); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--peach-bright); }
.article-body blockquote { border-left: 2px solid var(--peach); padding-left: 20px; margin: 24px 0; color: var(--text); font-style: italic; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.article-body code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 14.5px; }
.article-body pre { background: rgba(255,255,255,0.04); padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; margin: 0 0 20px; }
.article-body pre code { background: transparent; padding: 0; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

.article-cta {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-top: 56px;
  display: flex; flex-direction: column; gap: 16px;
}
.article-cta h3 { font-size: 22px; color: var(--text); }
.article-cta p { color: var(--text-mute); }

.related { padding-top: 56px; padding-bottom: 96px; border-top: 1px solid var(--border); }
.related h2 { font-size: 24px; margin-bottom: 24px; }
.related .card-grid { padding: 0; }

.related-downloads {
  background: var(--surface); border: 1px solid var(--purple-line);
  border-radius: var(--radius); padding: 28px; margin: 40px 0;
}
.related-downloads h3 { font-size: 18px; color: var(--purple-bright); margin-bottom: 8px; }
.related-downloads p { color: var(--text-mute); font-size: 14.5px; margin-bottom: 16px; }
.related-downloads .btn { font-size: 13px; padding: 11px 18px; }

/* ===== Post navigation (prev/next) ===== */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 16px; border-top: 1px solid var(--border); margin-top: 48px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; padding: 16px 0; border-radius: 8px; transition: opacity 0.2s; }
.post-nav a:hover { opacity: 0.85; }
.post-nav .nav-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--purple-bright); text-transform: uppercase; }
.post-nav .nav-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text); }
.post-nav .nav-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--text-mute); text-transform: uppercase; }
.post-nav .next-link { text-align: right; }
.post-nav .empty-slot { visibility: hidden; }
@media (max-width: 720px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next-link { text-align: left; } }

/* ===== Footer ===== */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 32px; position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h3 { font-size: 13px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-bright); margin-bottom: 16px; font-weight: 500; }
.foot-col a { display: block; color: var(--text-mute); text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: var(--text); }
.foot-col p { color: var(--text-mute); font-size: 14px; }
.foot-bottom { padding-top: 24px; color: var(--text-faint); font-size: 13px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.foot-bottom a { color: inherit; }

/* ===== Industries marquee (between hero and filters) ===== */
.marquee-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: rgba(11,19,38,0.3);
  z-index: 2;
}
.marquee-label { text-align: center; margin-bottom: 24px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 56px; padding-right: 56px; flex-shrink: 0; }
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.marquee-item {
  display: flex; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 500; color: var(--text);
  white-space: nowrap; flex-shrink: 0;
  transition: color 0.2s;
}
.marquee-item:hover { color: var(--peach-bright); }
.marquee-item::before {
  content: ''; width: 6px; height: 6px;
  background: var(--blue); border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
}
@media (max-width: 700px) {
  .marquee-item { font-size: 16px; gap: 12px; }
  .marquee-group { gap: 36px; padding-right: 36px; }
  .marquee-item::before { width: 5px; height: 5px; }
}

/* ===== Industries marquee description panel =====
   Sits below the marquee, updates on hover of any marquee item.
   A single fixed panel is calmer than a tooltip on a constantly-animating element. */
.marquee-desc-panel {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  position: relative;
  transition: border-color 0.25s var(--ease-out);
}
.marquee-desc-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-line), transparent);
}
.marquee-desc-panel.is-active { border-color: var(--purple-line); }
.marquee-desc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--peach-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  transition: opacity 0.2s ease;
  min-height: 14px;
}
.marquee-desc-body {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  transition: opacity 0.2s ease;
}
.marquee-desc-panel:not(.is-active) .marquee-desc-label,
.marquee-desc-panel:not(.is-active) .marquee-desc-body { opacity: 0; }
.marquee-desc-placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: opacity 0.2s ease;
  text-align: center;
  position: absolute;
  left: 0; right: 0; top: 50%; transform: translateY(-50%);
}
.marquee-desc-panel.is-active .marquee-desc-placeholder { opacity: 0; }

/* ===== Scroll progress bar — sits flush against the bottom of the sticky nav.
   The selector is only matched on individual insights post pages (the element
   is injected via page_shell with is_post=True). Lives in shared CSS by
   convention — single source of truth and one-time cached fetch. ===== */
.scroll-progress {
  position: absolute; left: 0; bottom: -3px;
  height: 3px; width: 0%;
  background: var(--peach);
  z-index: 101;
  pointer-events: none;
  will-change: width;
}

/* ===== Scroll-linked reveal (JS sets opacity & transform per frame) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

.page-head#hero { will-change: opacity, transform; }

/* ===== Post-page contact form (Web3Forms) — mirrors home's contact-form styles ===== */
.article-form-wrap {
  max-width: 640px; margin: 56px auto 0; padding: 36px 0 0;
  border-top: 1px solid var(--border); position: relative;
}
.article-form-heading { font-size: 22px; letter-spacing: -0.02em; margin: 0 auto 8px; text-align: center; max-width: 540px; }
.article-form-sub { color: var(--text-mute); font-size: 15px; margin: 0 auto 24px; text-align: center; max-width: 540px; }
.article-form-sub a { color: var(--purple-bright); text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  max-width: 540px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
  text-align: left;
}
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 540px) { .contact-form .field-row { grid-template-columns: 1fr; } }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 500;
}
.contact-form label .req { color: var(--peach); margin-left: 4px; }
.contact-form input, .contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font: inherit; font-size: 16px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--border-strong); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.18);
}
.contact-form .cf-submit { align-self: center; margin-top: 6px; }
.contact-form .cf-submit[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.contact-form .cf-error {
  display: none;
  padding: 12px 16px;
  background: rgba(255, 120, 120, 0.08);
  border: 1px solid rgba(255, 120, 120, 0.22);
  border-radius: var(--radius-sm);
  color: rgb(255, 190, 190);
  font-size: 14px;
}
.contact-form .cf-error.is-visible { display: block; }
.hidden-honeypot {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
}
.cf-success {
  display: none;
  max-width: 540px; margin: 0 auto;
  padding: 36px 28px; text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cf-success.is-visible { display: block; }
.cf-success-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-bright);
}
.cf-success h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.02em; }
.cf-success p { color: var(--text-mute); font-size: 15px; max-width: 400px; margin: 0 auto; }
.cf-success p a { color: var(--peach); text-decoration: underline; text-underline-offset: 3px; }


/* Related block — internal linking footer on Insights posts */
.related-block {
  max-width: 920px;
  margin: 72px auto 56px;
  padding: 36px 0 0;
  border-top: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 48px;
}
@media (max-width: 720px) {
  .related-grid { grid-template-columns: 1fr; gap: 32px; }
}
.related-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peach);
  margin: 0 0 14px;
}
.related-link-service {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: border-color .2s ease, background .2s ease;
}
.related-link-service:hover {
  border-color: var(--purple-bright);
  background: var(--purple-soft);
}
.related-link-arrow {
  color: var(--purple-bright);
  font-weight: 400;
  transition: transform .2s ease;
}
.related-link-service:hover .related-link-arrow { transform: translateX(4px); }
.related-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.related-list li a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
  transition: color .2s ease, padding-left .2s ease;
}
.related-list li:last-child a { border-bottom: none; }
.related-list li a:hover {
  color: var(--purple-dark);
  padding-left: 6px;
}

