/* article.css — shared shell styles for every Insights article page.
   Extracted verbatim 2026-08-10 from insights/optimize-for-ai-overviews/index.html,
   which keeps its own inline copy and is untouched. New article pages link this file
   instead of inlining 350 lines each. Author byline rules are appended at the end. */

  /* ── RESET ── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text-mid);
    font-family: var(--geist);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }

  /* Article-local helpers not in the shared token set */
  :root {
    --text-body:   #C5CEE2;            /* long-form body ink */
    --border-lift: #343a48;            /* card hover border */
    --surface:     rgba(60,97,235,.05);
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 24px var(--ml);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
  }

  .nav-logo {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
  }
  .nav-logo img { height: 28px; width: auto; display: block; }
  .nav-logo-symbol { display: none; }

  @media (max-width: 640px) {
    .nav-logo-wordmark { display: none; }
    .nav-logo-symbol   { display: block; height: 32px; }
  }

  .nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }

  .nav-link {
    font-family: var(--sohne);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .nav-link:hover { color: var(--text-high); }

  .nav-link--dropdown::after {
    content: '';
    display: inline-block;
    font-size: 9px;
    color: var(--blue);
    transition: transform 0.2s ease;
  }

  .nav-cta {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #02040a;
    text-decoration: none;
    background: var(--gradient-btn);
    border: none;
    border-radius: 100px;
    padding: 11px 28px;
    margin-left: 36px;
    white-space: nowrap;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
  }
  .nav-cta:hover { box-shadow: 0 0 28px rgba(60,97,235,0.45); transform: translateY(-1px); }

  /* ── NAV DROPDOWN ── */
  .nav-item--dropdown { position: relative; list-style: none; }
  .nav-item--dropdown:hover .nav-link--dropdown::after,
  .nav-item--dropdown:focus-within .nav-link--dropdown::after { transform: rotate(180deg); }

  .nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: -14px;
    min-width: 240px;
    background: rgba(2,4,10,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(60,97,235,0.15);
    border-radius: 8px;
    padding: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  }
  .nav-dropdown::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
  .nav-item--dropdown:hover .nav-dropdown,
  .nav-item--dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-dropdown-link {
    font-family: var(--sohne);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-mid);
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .nav-dropdown-link:hover { color: var(--blue); background: rgba(60,97,235,0.08); }

  .nav-divider { height: 1px; margin: 6px 8px; background: rgba(60,97,235,0.15); list-style: none; }

  /* ── NAV SCROLL STATE ── */
  nav.scrolled {
    background: rgba(2,4,10,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(60,97,235,0.1);
    padding-top: 16px;
    padding-bottom: 16px;
  }

  /* ── MOBILE NAV ── */
  .nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 102;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-high);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
    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); }
  .nav-mobile-cta-wrapper { display: none; }

  /* ── PROGRESS BAR ── */
  .progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--eyebrow-modules); z-index: 200; transition: width .1s linear; }

  /* ── LAYOUT ── */
  main { max-width: 1040px; margin: 0 auto; padding: 0 40px; }

  .head { max-width: 780px; margin: 132px auto 0; }
  .head .back { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; gap: 7px; }
  .head .back:hover { color: var(--eyebrow-modules); }
  .head .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--eyebrow-modules); margin-top: 30px; }
  .head h1 { font-family: var(--sohne); font-weight: 600; font-size: 44px; line-height: 1.08; letter-spacing: -.025em; color: var(--text-high); margin-top: 18px; }
  .head .dek { font-size: 19px; line-height: 1.55; color: var(--text-mid); margin-top: 20px; }
  .head .meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; color: var(--text-muted); margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .head .meta .dot { opacity: .5; }

  .cover { margin: 40px 0 8px; aspect-ratio: 16/8; border-radius: 16px; border: 1px solid var(--border); position: relative; overflow: hidden;
    background: radial-gradient(120% 120% at 28% 16%,rgba(60,97,235,.36),transparent 58%),linear-gradient(135deg,#0b1228,#02040A 72%); }
  .cover::after { content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg,rgba(120,150,250,.07) 0 1px,transparent 1px 30px),repeating-linear-gradient(90deg,rgba(120,150,250,.07) 0 1px,transparent 1px 30px);
    -webkit-mask-image: radial-gradient(120% 120% at 50% 38%,#000,transparent 86%); mask-image: radial-gradient(120% 120% at 50% 38%,#000,transparent 86%); }
  /* Hero cover image sits above the gradient + grid (which remain as fallback so the hero is never blank). */
  .cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }

  .grid { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 72px; margin-top: 50px; align-items: start; }

  .toc { position: sticky; top: 110px; font-family: var(--mono); }
  .toc .label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
  .toc a { display: block; font-size: 12.5px; line-height: 1.4; color: var(--text-mid); padding: 7px 0 7px 14px; border-left: 1px solid var(--border); transition: color .2s, border-color .2s; }
  .toc a.sub { padding-left: 28px; font-size: 12px; color: var(--text-muted); }
  .toc a:hover { color: var(--text-high); }
  .toc a.active { color: var(--eyebrow-modules); border-color: var(--eyebrow-modules); }

  .article-body { font-size: 18px; line-height: 1.78; color: var(--text-body); max-width: 720px; }
  .article-body h2 { font-family: var(--sohne); font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; color: var(--text-high); margin: 54px 0 18px; scroll-margin-top: 110px; }
  .article-body h3 { font-family: var(--sohne); font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--text-high); margin: 38px 0 14px; scroll-margin-top: 110px; }
  .article-body p { margin: 0 0 22px; }
  .article-body p:first-of-type { font-size: 20px; line-height: 1.7; color: #D7DEEC; }
  .article-body a { color: var(--eyebrow-modules); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(110,139,245,.4); }
  .article-body a:hover { text-decoration-color: var(--eyebrow-modules); }
  .article-body strong { color: var(--text-high); font-weight: 600; }
  .article-body ol, .article-body ul { margin: 0 0 26px; padding-left: 24px; }
  .article-body li { margin-bottom: 12px; padding-left: 6px; }
  .article-body li::marker { color: var(--eyebrow-modules); }
  .article-body blockquote { margin: 30px 0; padding: 6px 0 6px 24px; border-left: 2px solid var(--blue); font-size: 20px; line-height: 1.6; color: var(--text-high); }
  .article-img { margin: 36px 0; }
  .article-img .ph { aspect-ratio: 16/9; border-radius: 12px; border: 1px solid var(--border); position: relative; overflow: hidden;
    background: radial-gradient(120% 130% at 70% 30%,rgba(110,139,245,.28),transparent 60%),linear-gradient(150deg,#0a1020,#02040A 72%); }
  .article-img .ph::after { content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg,rgba(120,150,250,.06) 0 1px,transparent 1px 28px),repeating-linear-gradient(90deg,rgba(120,150,250,.06) 0 1px,transparent 1px 28px);
    -webkit-mask-image: radial-gradient(120% 120% at 50% 40%,#000,transparent 86%); mask-image: radial-gradient(120% 120% at 50% 40%,#000,transparent 86%); }
  .article-img figcaption { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-top: 10px; letter-spacing: .02em; }
  /* Inline figure: real lazy-loaded image + optional source line (.src after figcaption).
     Sample article does not call one; here for future articles. */
  .article-img img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }

  /* ── BODY COMPONENTS (reusable across Insights articles) ── */
  /* Source line — shared by every component that shows a number. Geist Mono, muted, working external link. */
  .src { font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--text-muted); margin-top: 10px; letter-spacing: 0; }
  .src a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(110,139,245,.4); transition: color .2s ease, text-decoration-color .2s ease; }
  .src a:hover { color: var(--eyebrow-modules); text-decoration-color: var(--eyebrow-modules); }
  /* Source lines live inside .article-body, where p:first-of-type (0,2,1) and .statcallout p (0,1,1)
     out-rank the bare .src class (0,1,0). The .src <p> is the only <p> in .pullstat/.compare, so it
     matches :first-of-type. Control size + color here at (0,3,0) so the footnote always wins. */
  .article-body .pullstat .src,
  .article-body .statcallout .src,
  .article-body .compare .src { font-size: 11px; line-height: 1.4; letter-spacing: 0; color: var(--text-muted); }
  .article-body .pullstat .src { font-size: 10.5px; } /* step down so the source never wraps to three lines under a number */

  /* 1 — Pull-stat strip: 1–3 large numbers, each with label + source. Row on desktop, stacks on mobile. */
  .pullstrip { display: flex; gap: 44px; margin: 44px 0; padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .pullstat { flex: 1 1 0; min-width: 0; }
  .pullstat .num { font-family: var(--sohne); font-weight: 600; font-size: clamp(40px, 6vw, 54px); line-height: 1; letter-spacing: -.03em; color: var(--eyebrow-modules); }
  .pullstat .label { font-family: var(--geist); font-size: 15px; line-height: 1.45; color: var(--text-mid); margin-top: 14px; }
  .pullstat .src { margin-top: 12px; }

  /* 2 — Stat callout: bordered aside, key figure bolded inline (weight only), source beneath. */
  .statcallout { margin: 34px 0; padding: 26px 32px; background: rgba(60,97,235,0.06); border: 1px solid var(--border); border-left: 3px solid var(--eyebrow-modules); border-radius: 12px; }
  .statcallout p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text-body); }
  .statcallout strong { color: var(--text-high); font-weight: 600; }
  .statcallout .src { margin-top: 14px; }

  /* 3 — Comparison block: two equal bordered panels, right header accented. Stacks on mobile. */
  .compare { margin: 44px 0; }
  .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .compare-col { padding: 26px 28px; border: 1px solid var(--border); border-radius: 12px; }
  .compare-col h4 { font-family: var(--sohne); font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; color: var(--text-high); margin: 0 0 16px; }
  .compare-col--accent h4 { color: var(--eyebrow-modules); }
  .compare-col ul { list-style: none; margin: 0; padding: 0; }
  .compare-col li { position: relative; margin: 0 0 12px; padding-left: 18px; font-size: 16px; line-height: 1.55; color: var(--text-body); }
  .compare-col li:last-child { margin-bottom: 0; }
  .compare-col li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--eyebrow-modules); opacity: .7; }
  .compare .src { margin-top: 16px; }

  .cta { max-width: 780px; margin: 80px auto 0; padding: 44px 40px; border: 1px solid var(--border); border-radius: 18px;
    background: radial-gradient(120% 140% at 50% 0,rgba(60,97,235,.12),transparent 70%),var(--surface); text-align: center; }
  .cta .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--eyebrow-modules); }
  .cta h3 { font-family: var(--sohne); font-weight: 600; font-size: 27px; line-height: 1.2; letter-spacing: -.02em; color: var(--text-high); margin: 14px auto 22px; max-width: 480px; }
  .cta .btn { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #02040a; background: var(--gradient-btn); padding: 14px 28px; border-radius: 100px; transition: box-shadow 0.3s ease, transform 0.2s ease; }
  .cta .btn:hover { box-shadow: 0 0 28px rgba(60,97,235,0.45); transform: translateY(-1px); }

  /* ── BROWSE ALL (single-link stand-in until more articles exist) ── */
  .browse-all { max-width: 1040px; margin: 90px auto 0; padding-top: 40px; border-top: 1px solid var(--border); }
  .browse-all a { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mid); display: inline-flex; align-items: center; gap: 9px; transition: color .2s ease; }
  .browse-all a:hover { color: var(--eyebrow-modules); }

  /* ── FOOTER ── */
  footer { margin-top: 100px; padding: 48px var(--ml); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .footer-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; line-height: 0; }
  .footer-logo img { height: 22px; width: auto; display: block; }
  .footer-links { display: flex; align-items: center; gap: 28px; list-style: none; flex-wrap: wrap; }
  .footer-link { font-family: var(--geist); font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
  .footer-link:hover { color: var(--text-mid); }
  .footer-copy { font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; flex-shrink: 0; }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    :root { --ml: 32px; }

    .nav-hamburger { display: block; }
    .nav-cta { display: none; }

    .nav-links {
      position: fixed;
      top: 0; left: 0; right: 0; height: 100vh; height: 100dvh;
      flex-direction: column;
      justify-content: flex-start;
      align-items: stretch;
      padding: 96px 32px 48px;
      background: rgba(2,4,10,0.96);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      gap: 0;
      z-index: 101;
      overflow-y: auto;
      transform: translateY(-100%);
      transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.35s;
      opacity: 0;
      visibility: hidden;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-links > li { width: 100%; border-bottom: 1px solid rgba(60,97,235,0.12); }
    .nav-link { display: block; font-size: 20px; padding: 18px 0; }
    .nav-link--dropdown::after { display: none; }

    .nav-dropdown {
      position: static; opacity: 1; visibility: visible; transform: none;
      background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
      border: none; box-shadow: none; padding: 0 0 12px 0; min-width: 0; transition: none;
    }
    .nav-dropdown::before { display: none; }
    .nav-dropdown li { border-bottom: none; }
    .nav-divider { display: none; }
    .nav-dropdown-link { font-size: 15px; padding: 12px 0 12px 18px; color: var(--text-mid); }
    .nav-dropdown-link:hover { background: transparent; color: var(--blue); }

    .nav-mobile-cta-wrapper { display: block; border-bottom: none !important; margin-top: 28px; }
    .nav-mobile-cta {
      display: block; text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 700;
      letter-spacing: 0.08em; text-transform: uppercase; color: #02040a; text-decoration: none;
      background: var(--gradient-btn); border-radius: 100px; padding: 16px 28px; width: 100%;
    }
    body.menu-open { overflow: hidden; }

    main { padding: 0 var(--ml); }
    .head { margin-top: 108px; }
    .head h1 { font-size: 32px; }
    .grid { grid-template-columns: 1fr; gap: 0; }
    .toc { position: static; margin-bottom: 36px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; }
    .toc a { border-left: 0; padding: 6px 0; }
    .toc a.active { border-left: 0; }
    .article-body { font-size: 17px; }

    .pullstrip { flex-direction: column; gap: 28px; }
    .compare-grid { grid-template-columns: 1fr; }

    footer { flex-direction: column; align-items: flex-start; gap: 24px; padding: 40px var(--ml); }
    .footer-links { gap: 12px 20px; }
  }

  @media (max-width: 480px) {
    :root { --ml: 24px; }
    .nav-links { padding: 88px 24px 40px; }
    .nav-link { font-size: 18px; padding: 16px 0; }
  }

  /* ── AUTHOR BYLINE (article head) ──
     The byline is the visible half of the author attribution; the Person JSON-LD in
     the head is the machine half. Both are generated by build.mjs from the AUTHORS
     registry, so a name, title or LinkedIn URL is only ever written in one place. */
  .head .meta .author { color: var(--text-mid); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(110,139,245,.35); transition: color .2s ease, text-decoration-color .2s ease; }
  .head .meta .author:hover { color: var(--eyebrow-modules); text-decoration-color: var(--eyebrow-modules); }

  /* ── AUTHOR PAGE ──
     One page per author at /who-we-are/<slug>. Generated from the same registry, so
     adding Perla or Simon is a registry entry plus a build, never a new hand-built page. */
  .author-head { max-width: 780px; margin: 132px auto 0; }
  .author-head .back { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; gap: 7px; }
  .author-head .back:hover { color: var(--eyebrow-modules); }
  .author-id { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
  .author-portrait { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
  .author-head h1 { font-family: var(--sohne); font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: -.025em; color: var(--text-high); }
  .author-head .role { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--eyebrow-modules); margin-top: 12px; }
  .author-head .where { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }
  .author-bio { max-width: 720px; margin: 40px auto 0; font-size: 18px; line-height: 1.78; color: var(--text-body); }
  .author-bio p { margin: 0 0 22px; }
  .author-bio p:first-of-type { font-size: 20px; line-height: 1.7; color: #D7DEEC; }
  .author-elsewhere { max-width: 720px; margin: 8px auto 0; }
  .author-elsewhere a { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--text-mid); display: inline-flex; align-items: center; gap: 8px; }
  .author-elsewhere a:hover { color: var(--eyebrow-modules); }
  .author-posts { max-width: 720px; margin: 64px auto 0; padding-top: 36px; border-top: 1px solid var(--border); }
  .author-posts .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
  .author-posts a.post { display: block; padding: 18px 0; border-bottom: 1px solid var(--border); }
  .author-posts a.post:hover .t { color: var(--eyebrow-modules); }
  .author-posts .t { display: block; font-family: var(--sohne); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--text-high); transition: color .2s ease; }
  .author-posts .m { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--text-muted); margin-top: 8px; }

  @media (max-width: 768px) {
    .author-head { margin-top: 108px; }
    .author-head h1 { font-size: 30px; }
    .author-id { gap: 18px; }
    .author-portrait { width: 76px; height: 76px; }
    .author-bio { font-size: 17px; }
  }
