/* Editorial opening: scoped styles preserve the existing playbooks and footer. */
:root { --editorial-bg: #080808; --editorial-text: #f7f7f5; --editorial-muted: #c3c3cc; --editorial-accent: #aaa5fa; --editorial-paper: #f5f3ee; --editorial-serif: Georgia, 'Times New Roman', serif; }
body { background: var(--editorial-bg); }
.editorial-shell { width: min(1232px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; transform: translateY(-160%); z-index: 100; background: var(--editorial-accent); color: #080808; padding: 12px 20px; }
.skip-link:focus { transform: translateY(0); }
:where(a, button):focus-visible { outline: 3px solid #a9a2ff; outline-offset: 5px; }
section[id], main[id] { scroll-margin-top: 24px; }
.editorial-nav { border-bottom: 1px solid #242427; position: relative; z-index: 20; }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand-link { display: flex; align-items: center; flex-shrink: 0; }
.brand-link img { width: 100px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; margin-left: 36px; }
.editorial-nav a { color: var(--editorial-muted); font-size: 14px; transition: color .18s; }
.editorial-nav a:hover { color: #fff; }
.nav-menu-button { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-menu-button svg { width: 22px; height: 22px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav { padding: 12px 5.5% 20px; background: #101011; border-top: 1px solid #29292d; }
.mobile-nav a { display: block; padding: 14px 0; }
.editorial-hero { text-align: center; padding: 44px 0 40px; }
.editorial-eyebrow { color: var(--editorial-accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; }
.editorial-hero h1 { font-family: var(--editorial-serif); font-size: clamp(42px, 5vw, 64px); font-weight: 400; line-height: 1.03; letter-spacing: -.055em; margin: 22px 0 18px; color: var(--editorial-text); }
.editorial-hero h1 em { display: block; text-wrap: balance; font-weight: 400; color: #b5aff9; }
.hero-description { font-size: 16px; line-height: 1.5; color: #dfdfe5; max-width: 800px; margin-inline: auto; }
.newsletter-cta { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 24px; min-height: 48px; margin-top: 24px; border-radius: 10px; background: #a19afb; color: #0a0a14; font-size: 15px; font-weight: 600; transition: background .18s, transform .18s; }
.newsletter-cta:hover { background: #b8b2ff; transform: translateY(-2px); }
.newsletter-cta svg, .editorial-link svg { width: 19px; height: 19px; flex-shrink: 0; }
.editorial-research { width: min(1232px, calc(100% - 48px)); margin-inline: auto; padding-block: 16px 12px; color: var(--editorial-text); }
.research-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.research-copy { padding: 16px 0; min-width: 0; }
.research-eyebrow { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; font-size: 13px; font-weight: 500; letter-spacing: .2em; color: #b0a6cd; }
.research-eyebrow::after { content: ''; height: 1px; background: #29292e; flex: 1; }
.research-copy h2 { font-family: Inter, sans-serif; font-weight: 700; font-size: clamp(26px, 2.5vw, 36px); text-wrap: balance; line-height: 1.15; letter-spacing: -.035em; margin-top: 22px; }
.research-copy h2 a:hover { color: var(--editorial-accent); }
.research-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #9ca3af; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.6; }
.research-excerpt { font-size: 16px; line-height: 1.55; color: #9ca3af; margin: 18px 0 28px; max-width: 390px; }
.editorial-link { display: inline-flex; align-items: center; gap: 12px; color: var(--editorial-text); padding-block: 5px; border-bottom: 1px solid #8d83df; font-size: 16px; line-height: 1.5; transition: color .18s; }
.editorial-link svg { color: var(--editorial-accent); }
.editorial-link:hover { color: #c2bbff; }
.research-copy .editorial-link { color: var(--editorial-accent); border-bottom: 0; font-weight: 600; }
.research-copy .editorial-link:hover { color: #d0caff; }
/* Featured artwork: every article ships its own cover onto a near-black page, so
   the frame is fixed and the tone treatment is data-driven. The 16:9 box means an
   incoming cover of any dimensions slots in without moving the layout. Tone comes
   from newsletter/articles.json via scripts/cover-tone.py; see that script for the
   threshold and why this cannot be done in CSS alone. */
.research-art { display: block; min-width: 0; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.research-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Dark covers have the opposite problem - they bleed into the background - so
   leave the image alone and lift the frame until the card has a visible edge. */
.research-art[data-art-tone="dark"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

.editorial-studio { display: grid; grid-template-columns: 40% 60%; align-items: center; padding-block: 44px 48px; }
.editorial-studio h2 { font-family: var(--editorial-serif); font-weight: 400; font-size: clamp(34px, 3.5vw, 44px); line-height: 1; letter-spacing: -.055em; color: var(--editorial-text); }
.studio-summary { border-left: 1px solid #29292c; padding-left: 40px; padding-block: 14px; }
.studio-summary p { font-size: 16px; line-height: 1.5; color: #d1d1da; max-width: 520px; }
.studio-links { display: flex; flex-wrap: wrap; gap: 20px 46px; margin-top: 18px; }
.editorial-products { padding-block: 36px 48px; border-top: 1px solid #29292c; }
.products-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.products-heading h2 { font-family: var(--editorial-serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; margin-top: 14px; letter-spacing: -.04em; }
.showcase-controls { display: flex; gap: 12px; }
.showcase-controls button { display: flex; justify-content: center; align-items: center; width: 48px; height: 48px; border: 1px solid #6d678f; border-radius: 50%; color: #e1defc; transition: background .18s; }
.showcase-controls button:hover:not(:disabled) { background: #24202f; }
.showcase-controls button:disabled { opacity: .35; cursor: default; }
.showcase-controls svg { width: 20px; height: 20px; }
.product-showcase { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 6px 6px 22px; margin-inline: -6px; scrollbar-width: thin; scrollbar-color: #6a628f #1a191e; }
.product-item { flex: 0 0 calc((100% - 56px) / 3); scroll-snap-align: start; min-width: 0; }
.product-link { position: relative; display: flex; flex-direction: column; height: 100%; }
.product-link > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; border: 1px solid #2a292f; border-radius: 6px; }
.product-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.product-caption h3 { color: #f7f7f5; font-size: 20px; font-weight: 600; }
.product-caption > span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #aaa4c0; white-space: nowrap; }
.product-link > p { font-size: 15px; line-height: 1.6; color: #b7b6c3; padding-bottom: 22px; }
.product-action { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 14px; color: #bbb4ff; }
.product-action svg { width: 16px; height: 16px; }
.product-link:hover h3 { color: #bdb5ff; }
.showcase-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; }
.showcase-footer p { color: #aaa7ba; font-size: 13px; }

/* ---------- Shared section header ----------
   Sections 4 and 5 were authored in Tailwind utilities: centered, numbered
   "04 /" eyebrows marked up as <h2> with the real title demoted to <h3>. They
   now use the same left-aligned header as the editorial sections above, so the
   page reads as one document. */
.editorial-playbooks, .editorial-social { padding-block: 44px 52px; border-top: 1px solid #29292c; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-family: Inter, sans-serif; font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; letter-spacing: -.04em; margin-top: 14px; color: var(--editorial-text); }
.section-lede { margin-top: 14px; max-width: 560px; font-size: 16px; line-height: 1.55; color: #b7b6c3; }

/* ---------- Featured playbook ---------- */
.playbook-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #29292c; border-radius: 14px; overflow: hidden; background: #0a0a0a; }
.playbook-terminal { display: flex; flex-direction: column; min-height: 340px; border-right: 1px solid #29292c; background: #070709; }
.terminal-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #202024; }
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; background: #2e2e34; }
.terminal-title { margin-left: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .04em; color: #74747f; }
.terminal-body { margin: 0; padding: 20px 18px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.75; color: #b9b9c4; tab-size: 2; }
.terminal-body .t-prompt { color: #6f6f7b; }
.terminal-body .t-cmd { color: #e9e9f2; }
.terminal-body .t-you { color: #b5aff9; }
.terminal-body .t-ok { color: #7fcaa4; }
.terminal-body .t-dim { color: #6f6f7b; }

.playbook-copy { display: flex; flex-direction: column; padding: 32px 34px; }
.playbook-flag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #b0a6cd; }
.playbook-copy h3 { margin-top: 14px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; color: var(--editorial-text); }
.playbook-lede { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #b7b6c3; }
.playbook-points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.playbook-points li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: #d1d1da; }
.playbook-points li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 1px; background: #6d678f; }
.playbook-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; padding-top: 26px; }
.playbook-note { font-size: 13px; color: #8d8d98; }

/* ---------- Secondary playbooks ---------- */
.playbook-more-title { margin: 44px 0 20px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--editorial-text); }
.playbook-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; padding: 0; list-style: none; }
.playbook-grid .book-card { border: 1px solid #29292c; border-radius: 14px; background: #0a0a0a; transition: border-color .18s; }
.playbook-grid .book-card:hover { border-color: #6d678f; transform: none; box-shadow: none; }
.book-body { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.book-cover-pages { margin-top: 12px; }
.book-kicker { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #b0a6cd; }
.book-body h4 { margin: 12px 0; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--editorial-text); }
.book-body p { font-size: 14.5px; line-height: 1.6; color: #b7b6c3; }
.book-action { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #202024; font-size: 14px; font-weight: 600; color: #bbb4ff; }
.book-action svg { width: 15px; height: 15px; }

/* ---------- Social ---------- */
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-heading-row .section-lede { margin: 0 0 6px; max-width: 380px; text-align: right; }
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.social-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border: 1px solid #29292c; border-radius: 14px; background: #0a0a0a; transition: border-color .18s; }
.social-card:hover { border-color: #6d678f; }
.social-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #29292c; border-radius: 10px; background: #101014; }
.social-icon svg { width: 19px; height: 19px; color: #c9c8d4; }
.social-card:hover .social-icon svg { color: var(--editorial-accent); }
.social-copy { display: flex; flex-direction: column; min-width: 0; }
.social-name { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--editorial-text); }
.social-name svg { width: 13px; height: 13px; color: #6d678f; transition: color .18s; }
.social-card:hover .social-name svg { color: var(--editorial-accent); }
.social-note { margin-top: 2px; font-size: 13px; line-height: 1.45; color: #9d9daa; }

@media (max-width: 900px) {
    .playbook-feature { grid-template-columns: 1fr; }
    .playbook-terminal { border-right: 0; border-bottom: 1px solid #29292c; min-height: 0; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .section-heading-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .section-heading-row .section-lede { text-align: left; }
}
@media (max-width: 640px) {
    .editorial-playbooks, .editorial-social { padding-block: 42px 48px; }
    .section-heading { margin-bottom: 26px; }
    .playbook-copy { padding: 26px 22px; }
    .playbook-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: 1fr; gap: 10px; }
    .playbook-actions .site-button { width: 100%; }
    .terminal-body { font-size: 11.5px; }
}

@media (max-width: 900px) { .nav-links { gap: 22px; margin-left: 0; } .research-feature { gap: 28px; } .research-excerpt { font-size: 16px; } .studio-summary { padding-left: 38px; } .studio-links { gap: 16px 24px; } .product-item { flex-basis: calc((100% - 28px) / 2); } }
@media (max-width: 760px) { .nav-links, .nav-consulting { display: none; } .nav-menu-button { display: inline-flex; } }
@media (max-width: 640px) {
    .editorial-shell { width: calc(100% - 40px); }
    .nav-inner { height: 64px; gap: 16px; }
    .brand-link img { width: 100px; }
    .nav-links, .nav-consulting { display: none; }
    .nav-menu-button { display: inline-flex; }
    .editorial-hero { padding: 32px 0 32px; }
    .editorial-eyebrow { font-size: 10px; letter-spacing: .14em; }
    .editorial-hero h1 { font-size: clamp(32px, 8.5vw, 42px); line-height: 1.08; letter-spacing: -.05em; margin: 20px 0 18px; }
    .hero-description { max-width: 330px; font-size: 16px; line-height: 1.65; }
    .newsletter-cta { margin-top: 20px; min-height: 48px; padding: 12px 22px; font-size: 15px; }
    .editorial-research { width: calc(100% - 40px); }
    .research-feature { display: flex; flex-direction: column; gap: 20px; }
    .research-copy { padding: 0; width: 100%; }
    .research-eyebrow { font-size: 10px; gap: 18px; margin-bottom: 20px; }
    .research-copy h2 { font-size: 28px; margin-top: 16px; }
    .research-meta { font-size: 11px; }
    .research-excerpt { font-size: 15px; margin-block: 14px 18px; }
    .research-art { width: 100%; }
    .editorial-studio { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; }
    .editorial-studio h2 { font-size: 36px; }
    .studio-summary { border-left: 0; border-top: 1px solid #29292c; padding: 24px 0 0; }
    .studio-summary p { font-size: 16px; }
    .studio-links { gap: 20px; margin-top: 22px; }
    .editorial-link { font-size: 14px; }
    .editorial-products { padding-block: 42px 48px; }
    .products-heading { align-items: center; gap: 12px; }
    .products-heading h2 { font-size: 34px; max-width: 240px; }
    .showcase-controls { gap: 8px; }
    .showcase-controls button { width: 44px; height: 44px; }
    .product-item { flex-basis: 88%; }
    .product-showcase { gap: 20px; }
    .showcase-footer { align-items: start; }
    .showcase-footer p { max-width: 150px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
