/* Structural rules shared by every Neugent Consulting variant.
   Themes set the custom properties and skin the components in style.css. */

:root {
  --container: 1240px;
  --gutter: 24px;
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px; --space-6: 96px; --space-7: 128px;
  --radius: 0px;
  --font-body: system-ui, sans-serif;
  --font-display: Georgia, serif;
  --bg: #fff; --ink: #111; --text: #222; --muted: #666; --rule: #ddd; --paper: #f4f4f4;
  --accent: #2251ff; --accent-ink: #fff; --dark: #0a1a33; --dark-text: #fff;
  --max-prose: 720px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--alt { background: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.section-title { font-size: clamp(28px, 3.2vw, 40px); }
.eyebrow { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-2); font-weight: 600; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--text); max-width: 48ch; }
.arrow { display: inline-block; margin-left: 0.4em; transition: transform .2s; }
a:hover .arrow { transform: translateX(4px); }

.grid { display: grid; gap: var(--space-4) var(--space-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-6); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split__side { order: 2; }
.split__main { order: 1; }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: 1fr; gap: var(--space-4); } }
.side-title { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: var(--space-4) 0 var(--space-2); font-weight: 600; }
.side-title:first-child { margin-top: 0; }

/* page hero */
.page-hero { position: relative; padding: var(--space-6) 0 var(--space-5); overflow: hidden; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; margin-bottom: var(--space-3); }
.page-hero--dark { background: var(--dark); color: var(--dark-text); }
.page-hero--dark .page-hero__title, .page-hero--dark .lead, .page-hero--dark .eyebrow, .page-hero--dark .breadcrumb { color: var(--dark-text); }
.page-hero--dark .eyebrow { opacity: .75; }
.page-hero__art { position: absolute; inset: 0; z-index: 0; }
.page-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--dark .page-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark) 0%, color-mix(in srgb, var(--dark) 82%, transparent) 55%, color-mix(in srgb, var(--dark) 30%, transparent) 100%); }
.page-hero--art:not(.page-hero--dark) .page-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 50%, color-mix(in srgb, var(--bg) 25%, transparent) 100%); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: var(--space-3); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { text-decoration: underline; }

/* cards */
.card { display: flex; flex-direction: column; background: var(--bg); color: inherit; min-width: 0; }
.card__art { aspect-ratio: 3 / 2; overflow: hidden; }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__art img { transform: scale(1.03); }
.card__body { padding: var(--space-3) 0 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 22px; line-height: 1.25; }
.card__text { color: var(--text); margin: 0; font-size: 16px; }
.card__meta { font-size: 13px; color: var(--muted); margin: 0; }
.card__cta { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.card .eyebrow { margin-bottom: 0; }

/* feature */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-5); align-items: center; }
.feature__art { aspect-ratio: 16 / 10; overflow: hidden; }
.feature__art img { width: 100%; height: 100%; object-fit: cover; }
.feature__title { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: var(--space-2); }
.feature__text { font-size: 18px; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: var(--space-3); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.stats--stack { grid-template-columns: 1fr; gap: var(--space-3); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__n { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 60px); line-height: 1; color: var(--accent); }
.stat__label { font-size: 14px; color: var(--muted); max-width: 26ch; }

/* lists */
.link-list li { border-top: 1px solid var(--rule); }
.link-list li:last-child { border-bottom: 1px solid var(--rule); }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 500; }
.link-list a:hover { color: var(--accent); }
.check-list li { padding: 8px 0 8px 28px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.problem-list { counter-reset: p; }
.problem-list li { counter-increment: p; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--rule); font-size: 19px; }
.problem-list li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-display); font-size: 28px; color: var(--accent); line-height: 1.1; }
.offerings { margin: 0; }
.offerings__row { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--rule); }
.offerings__row:last-child { border-bottom: 1px solid var(--rule); }
.offerings dt { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.offerings dd { margin: 0; }
@media (max-width: 640px) { .offerings__row { grid-template-columns: 1fr; gap: 6px; } }
.approach__item { display: flex; flex-direction: column; gap: 8px; }
.approach__n { font-family: var(--font-display); font-size: 14px; letter-spacing: .1em; color: var(--accent); }
.approach__item h3 { font-size: 22px; }
.approach__item p { margin: 0; font-size: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; }

/* case rows */
.case-list { display: grid; gap: var(--space-5); }
.case-row { display: grid; grid-template-columns: 2fr 3fr 1fr; gap: var(--space-4); align-items: center; padding-bottom: var(--space-5); border-bottom: 1px solid var(--rule); }
.case-row:last-child { border-bottom: 0; padding-bottom: 0; }
.case-row__art { aspect-ratio: 4 / 3; overflow: hidden; }
.case-row__art img { width: 100%; height: 100%; object-fit: cover; }
.case-row__title { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 10px; }
.case-row__text { margin-bottom: 12px; }
.case-row__stat { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .case-row { grid-template-columns: 1fr; } }

/* people, news, offices */
.person__avatar { aspect-ratio: 1; overflow: hidden; margin-bottom: var(--space-2); max-width: 220px; }
.person__name { font-size: 20px; }
.person__role { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.person__bio { font-size: 15px; margin: 0; }
.news-list li { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--rule); }
.news-list time { font-size: 13px; color: var(--muted); padding-top: 4px; }
.news-list h3 { font-size: 20px; margin-bottom: 6px; }
.news-list p { margin: 0; font-size: 15px; }
.office-list li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--rule); }
.office-list span { color: var(--muted); font-size: 14px; }
.role-list { display: grid; gap: var(--space-3); }
.role { padding: var(--space-3); background: var(--bg); border: 1px solid var(--rule); display: grid; gap: 10px; }
.role__head { display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; align-items: baseline; }
.role__head h3 { font-size: 22px; }
.role__meta { color: var(--muted); font-size: 14px; }
.role p { margin: 0; }
.role .btn { justify-self: start; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; background: transparent; color: var(--ink); }
.btn--primary { background: var(--ink); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost:hover { background: var(--ink); color: var(--accent-ink); }
.link-more { font-weight: 600; color: var(--accent); white-space: nowrap; }

/* cta band */
.cta-band { position: relative; background: var(--dark); color: var(--dark-text); padding: var(--space-6) 0; overflow: hidden; }
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center; }
.cta-band__title { color: var(--dark-text); font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 8px; }
.cta-band__text { margin: 0; opacity: .85; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn { border-color: var(--dark-text); color: var(--dark-text); }
.cta-band .btn--primary { background: var(--dark-text); color: var(--dark); }
.cta-band .btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta-band__art { position: absolute; inset: 0; opacity: .5; }
.cta-band__art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* article */
.article__meta { font-size: 14px; color: var(--muted); }
.article__banner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.article__banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: 260px minmax(0, var(--max-prose)); gap: var(--space-6); padding-top: var(--space-5); padding-bottom: var(--space-6); justify-content: center; }
.article__side { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc { counter-reset: toc; display: grid; gap: 6px; }
.toc li { counter-increment: toc; padding-left: 28px; position: relative; color: var(--text); }
.toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.share a { color: var(--accent); }
.article__about { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .article__layout { grid-template-columns: 1fr; gap: var(--space-4); } .article__side { position: static; } }

/* prose */
.prose { font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: var(--space-5) 0 var(--space-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: var(--space-4) 0 var(--space-2); }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-5) 0; }
.prose blockquote, .pull-quote { margin: var(--space-4) 0; padding-left: var(--space-3); border-left: 3px solid var(--accent); }
.pull-quote p { font-family: var(--font-display); font-size: 26px; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.pull-quote footer { font-size: 14px; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 1.4em; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }

/* forms */
.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--text); font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form__actions { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* header skeleton (themes skin it) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 72px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo svg { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav > li { position: relative; }
.nav a { font-size: 15px; font-weight: 500; padding: 8px 0; display: inline-block; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-top: 1px solid var(--rule); padding: var(--space-2) var(--gutter) var(--space-3); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; display: block; }
  .header-actions .btn { display: none; }
}

/* footer skeleton */
.site-footer { background: var(--dark); color: var(--dark-text); padding: var(--space-6) 0 var(--space-4); }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-5); }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-text); opacity: .7; margin-bottom: var(--space-2); }
.footer-col li { margin-bottom: 8px; font-size: 15px; }
.footer-brand { color: var(--dark-text); }
.footer-brand svg { height: 44px; width: auto; margin-bottom: var(--space-2); }
.footer-brand p { font-size: 15px; opacity: .8; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; border-top: 1px solid color-mix(in srgb, var(--dark-text) 20%, transparent); padding-top: var(--space-3); font-size: 13px; opacity: .8; }
.footer-bottom ul { display: flex; gap: var(--space-2); flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* mega menu */
.menu-panel { display: none; position: absolute; top: 100%; left: 0; min-width: 320px; background: var(--bg); border: 1px solid var(--rule); box-shadow: 0 24px 48px rgba(0,0,0,.1); padding: var(--space-3); z-index: 60; }
[data-menu].is-open .menu-panel { display: block; }
.menu-panel li { margin: 0; }
.menu-panel a { display: block; padding: 8px 0; font-weight: 400; }
.menu-panel a:hover { color: var(--accent); }
@media (max-width: 960px) { .menu-panel { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; } }

/* narrow screens: stack section headers */
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; gap: 8px; } .page-hero__title { font-size: clamp(32px, 9vw, 44px); } }

/* insights filter */
.filter { display: flex; align-items: center; gap: 12px; margin-top: var(--space-3); max-width: 560px; }
.filter__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.filter__input { flex: 1; font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--text); min-width: 0; }
.filter__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.filter__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.filter__empty { color: var(--muted); padding: var(--space-3) 0; }
button.tag { font: inherit; background: transparent; cursor: pointer; color: inherit; }
.people { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* keyboard focus */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible { outline-offset: 2px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible, .filter__input:focus-visible { outline-offset: 1px; }
h2[id], h3[id] { scroll-margin-top: 96px; }

/* article side bar */
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.share__copy { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.share__copy:hover { text-decoration: underline; }
.share__copy.is-done { color: var(--muted); }

/* mobile-only nav items */
.nav__mobile { display: none; }
@media (max-width: 960px) {
  .nav__mobile { display: block; border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 8px; }
  .nav__mobile a { font-weight: 600; }
  .menu-panel { border-top: 0 !important; }
  .menu-panel a { font-size: 15px; color: var(--muted); padding: 8px 0 8px 12px !important; }
}

/* print */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .article__side, .skip, .filter, [data-reveal] { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; color: #555; }
  .page-hero--dark { background: none; color: #000; }
  .page-hero--dark .page-hero__title, .page-hero--dark .lead, .page-hero--dark .eyebrow { color: #000; }
  .page-hero__art, .article__banner { display: none; }
  .prose { max-width: none; }
}
