/* ============================================================
   NE AI Lab — marketing site
   Design: grounded professional consulting. One sans family
   (Public Sans), calm scale, minimal decoration. Navy ink,
   off-white paper, single pine-green accent.
   ============================================================ */

:root {
  --paper:  #f7f6f3;
  --paper-2:#eeece7;
  --ink:    #1b2a3a;   /* deep navy */
  --ink-90: #2c3c4e;
  --slate:  #5b6875;
  --hair:   rgba(27, 42, 58, 0.14);
  --hair-soft: rgba(27, 42, 58, 0.08);
  --accent: #2e7d5a;   /* pine green */
  --accent-dark: #246347;
  --accent-wash: rgba(46, 125, 90, 0.07);

  /* One professional sans sitewide. The three vars remain for
     compatibility with older class usage — all resolve the same. */
  --font-grot:  "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1160px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-grot);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--ink); color: var(--paper); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; font-size: 0.85rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Type helpers ---------- */
/* Headlines: clear, direct, no decoration. */
.h-display {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
/* Legacy italic-accent markup renders as plain text now. */
em.serif, .serif-em, .serif {
  font-style: normal;
  font-family: inherit;
  font-weight: inherit;
}
/* Section/eyebrow labels: subtle, not stylized. */
.mono-label {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--accent-dark);
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.6rem;
  padding: 0 var(--gutter);
  height: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}
.masthead__brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.masthead__mark {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  background: var(--ink); color: var(--paper);
  padding: 0.3rem 0.5rem; border-radius: 4px;
}
.masthead__name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600; font-size: 1.2rem;
  letter-spacing: -0.015em; white-space: nowrap;
  font-variation-settings: "opsz" 40;
}
.masthead__nav {
  display: flex; gap: 1.5rem; margin-left: auto;
  font-size: 0.92rem; font-weight: 500;
}
.masthead__nav a {
  text-decoration: none; color: var(--ink-90);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px; transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.masthead__nav a:hover { color: var(--ink); border-color: var(--accent); }
.masthead__cta {
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #fff;
  padding: 0.55rem 1.1rem; border-radius: var(--radius);
  transition: background 0.2s var(--ease);
  white-space: nowrap;
}
.masthead__cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--hair);
  font-size: 0.9rem; font-weight: 500; border-radius: var(--radius);
  padding: 0.45rem 0.9rem; cursor: pointer; color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.98rem; font-weight: 600;
  letter-spacing: 0;
  text-decoration: none; text-align: center;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: rgba(27, 42, 58, 0.35); }
.btn--outline:hover { border-color: var(--ink); background: #fff; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--paper-2); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 4.5rem) var(--gutter) clamp(2.2rem, 4vw, 3.2rem);
}
.hero__title {
  margin: 0.5rem 0 1.2rem;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  max-width: 26ch;
  text-wrap: balance;
}
.hero__sub {
  margin: 0 0 2rem;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink-90);
  max-width: 60ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.1rem; }
.hero__trust {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate);
}
.hero__trust::before { content: ""; }

/* ---------- Flow (Map → Score → Build → Train → Improve) ---------- */
.flow {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  background: #fff;
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
}
.flow__title { margin: 0 0 1.2rem; color: var(--slate); font-weight: 600; font-size: 0.9rem; }
.flow__track {
  display: flex; align-items: stretch;
  overflow-x: auto;
}
.flow__step {
  flex: 1 1 0; min-width: 130px;
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border-radius: var(--radius);
  position: relative;
}
.flow__step + .flow__step { margin-left: 1.5rem; }
.flow__step + .flow__step::before {
  content: "→";
  position: absolute; left: -1.15rem; top: 50%;
  transform: translateY(-50%);
  color: var(--slate); font-size: 0.9rem;
}
.flow__step b { font-weight: 700; font-size: 0.98rem; }
.flow__step span { font-size: 0.85rem; color: var(--slate); line-height: 1.5; }

/* ---------- Slogan band (retired visual; kept harmless if present) ---------- */
.band {
  background: var(--ink); color: var(--paper);
  text-align: center;
  padding: 0.85rem var(--gutter);
  font-size: 0.92rem; letter-spacing: 0;
}
.band em { font-style: normal; color: #b9dcc9; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 4.5rem) var(--gutter);
  border-bottom: 1px solid var(--hair-soft);
}
/* The magazine rail is retired: numbering hidden, label sits above
   the heading as a simple line, single-column layout. */
.section--rail { display: block; }
.section__rail {
  position: static;
  display: block;
  margin-bottom: 0.5rem;
}
.section__no { display: none; }
.section__title {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  max-width: 30ch; text-wrap: balance;
}
.section__lede {
  margin: 0 0 clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--ink-90); max-width: 68ch; font-size: 1.05rem;
}

/* ---------- Card grids ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
}
.card--accent { border: 1px solid var(--hair-soft); }
.card__label { display: block; margin-bottom: 0.55rem; font-size: 0.82rem; }
.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.08rem; font-weight: 700;
  line-height: 1.35;
}
.card__body { margin: 0; color: var(--slate); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Steps (numbered process) ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.5rem 1.4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hair-soft);
  align-items: start;
}
.steps__item:last-child { border-bottom: 1px solid var(--hair-soft); }
.steps__no {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent-wash);
  color: var(--accent-dark);
  border-radius: 50%;
  font-size: 1.05rem; font-weight: 700;
}
.steps__title {
  margin: 0.3rem 0 0.4rem;
  font-size: 1.15rem; font-weight: 700;
  text-transform: none; letter-spacing: 0;
}
.steps__desc { margin: 0; color: var(--ink-90); max-width: 62ch; }

/* ---------- Plain lists (what we don't do) ---------- */
.nope { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.nope li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.9rem 0;
  border-top: 1px solid var(--hair-soft);
  font-size: 1.02rem;
}
.nope li:last-child { border-bottom: 1px solid var(--hair-soft); }
.nope li::before { content: "—"; color: var(--accent-dark); flex: 0 0 auto; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.55rem; max-width: 860px; }
.tags span {
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid var(--hair-soft);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  color: var(--ink-90);
}

/* ---------- Before / After ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.compare__col {
  background: #fff; border: 1px solid var(--hair-soft);
  border-radius: var(--radius); padding: 1.5rem;
}
.compare__col--after { background: var(--accent-wash); border-color: rgba(46, 125, 90, 0.25); }
.compare__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--hair-soft);
}
.compare__head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; text-transform: none; }
.compare__head .mono-label { color: var(--slate); font-weight: 500; }
.compare ol { list-style: none; margin: 0; padding: 0; }
.compare ol li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.4rem;
  font-size: 0.95rem; color: var(--ink-90);
}
.compare ol li::before {
  content: "↓";
  position: absolute; left: 0; top: 0.42rem;
  font-size: 0.85rem; color: var(--slate);
}
.compare ol li:first-child::before { content: "•"; }
.compare__col--after ol li.ai::after {
  content: "AI";
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--accent);
  padding: 0.1rem 0.4rem; margin-left: 0.5rem;
  border-radius: 3px; vertical-align: 1px;
}
.compare__note {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-90);
  border-left: 3px solid var(--accent);
  padding: 0.6rem 0 0.6rem 1rem;
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Module cards ---------- */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.module {
  background: #fff; border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem;
}
.module__name { margin: 0; font-size: 1.08rem; font-weight: 700; }
.module__what { margin: 0; color: var(--ink-90); font-size: 0.95rem; }
.module__meta { margin: 0; font-size: 0.88rem; color: var(--slate); }
.module__meta b { color: var(--ink); font-weight: 600; }
.module__hitl {
  margin: 0; font-size: 0.85rem;
  color: var(--accent-dark);
  border-top: 1px solid var(--hair-soft); padding-top: 0.65rem;
}
.module__hitl::before { content: "✓ "; }
.module__cta {
  margin-top: auto;
  font-size: 0.92rem; font-weight: 600;
  text-decoration: none; color: var(--accent-dark);
}
.module__cta:hover { text-decoration: underline; }
.module-group { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.module-group__title {
  margin: 0 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hair);
  font-size: 1.2rem; font-weight: 700;
  text-transform: none; letter-spacing: 0;
}

/* ---------- Phases (assessment page) ---------- */
.phase {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.5rem 1.4rem;
  padding: clamp(1.4rem, 3.5vw, 2rem) 0;
  border-top: 1px solid var(--hair-soft);
}
.phase:last-of-type { border-bottom: 1px solid var(--hair-soft); }
.phase__no {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-dark);
  border-radius: 50%;
  font-size: 1.05rem; font-weight: 700;
}
.phase__title {
  margin: 0.3rem 0 0.9rem; font-size: 1.15rem; font-weight: 700;
  text-transform: none; letter-spacing: 0;
}
.phase__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.phase__cell h4 {
  margin: 0 0 0.3rem;
  font-size: 0.85rem; font-weight: 600;
  text-transform: none; letter-spacing: 0;
  color: var(--accent-dark);
}
.phase__cell p { margin: 0; font-size: 0.93rem; color: var(--ink-90); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; max-width: 700px; }
.checklist li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.7rem 0; border-top: 1px solid var(--hair-soft);
  color: var(--ink-90);
}
.checklist li:last-child { border-bottom: 1px solid var(--hair-soft); }
.checklist li::before { content: "✓"; color: var(--accent-dark); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink); color: var(--paper);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
  text-align: center;
}
.cta-banner__title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}
.cta-banner__copy {
  margin: 0 auto 2rem;
  max-width: 58ch; font-size: 1.05rem; opacity: 0.9;
}

/* ---------- Page header (subpages) ---------- */
.page-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.6rem, 5vw, 4rem) var(--gutter) clamp(1.8rem, 3.5vw, 2.6rem);
  border-bottom: 1px solid var(--hair-soft);
}
.page-head__title { margin: 0.25rem 0 0.9rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-head__sub { margin: 0; font-size: 1.1rem; color: var(--ink-90); max-width: 62ch; }

/* ---------- Contact form ---------- */
.form-wrap {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-size: 0.88rem; font-weight: 600;
  text-transform: none; letter-spacing: 0;
  color: var(--ink-90);
}
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.form__submit { margin-top: 0.5rem; }
.form__reassure { margin: 1rem 0 0; font-size: 0.92rem; color: var(--slate); }
.form__status { margin: 1rem 0 0; font-size: 0.95rem; color: var(--accent-dark); display: none; }
.form__status.show { display: block; }

.contact-aside {
  background: #fff; border: 1px solid var(--hair-soft);
  border-radius: var(--radius); padding: 1.6rem;
}
.contact-aside h3 { margin: 0 0 0.8rem; font-size: 1.05rem; font-weight: 700; text-transform: none; }
.contact-aside p { margin: 0 0 1rem; font-size: 0.95rem; color: var(--slate); }
.contact-aside a { color: var(--accent-dark); }

/* ---------- Footer ---------- */
.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--hair);
  padding: clamp(2rem, 4vw, 2.8rem) var(--gutter);
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  justify-content: space-between; align-items: start;
}
.footer__brand p { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--slate); font-style: normal; }
.footer__links { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; }
.footer__links a { text-decoration: none; color: var(--ink-90); }
.footer__links a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer__legal {
  max-width: var(--maxw); margin: 1.8rem auto 0;
  padding-top: 1.1rem; border-top: 1px solid var(--hair-soft);
  font-size: 0.85rem; color: var(--slate);
}

/* ---------- Reveal ---------- */
[data-observe] {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-observe].in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .masthead__nav, .masthead__cta { display: none; }
  .nav-toggle { display: block; }
  .masthead.nav-open { flex-wrap: wrap; height: auto; padding-bottom: 1rem; }
  .masthead.nav-open .masthead__nav {
    display: flex; flex-direction: column; gap: 0.9rem;
    width: 100%; order: 3; margin: 0.8rem 0 0.4rem;
  }
  .masthead.nav-open .masthead__cta { display: inline-block; order: 4; }
  .phase__grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .flow__track { flex-direction: column; }
  .flow__step + .flow__step { margin-left: 0; margin-top: 1.4rem; }
  .flow__step + .flow__step::before {
    content: "↓"; left: 1rem; top: -1.25rem; transform: none;
  }
  .steps__item, .phase { grid-template-columns: 44px 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-observe] { opacity: 1; transform: none; }
}

/* ---------- Masthead logo ---------- */
.masthead__logo { width: 38px; height: 38px; flex: 0 0 auto; }

/* ---------- Drill-down (assessment page) ---------- */
.drill { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.drill__item {
  position: relative;
  background: #fff;
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-top: 1rem;
}
.drill__item + .drill__item::before {
  content: "";
  position: absolute; top: -1rem; left: 2rem;
  width: 2px; height: 1rem;
  background: var(--accent);
}
.drill__item:nth-child(2) { margin-left: 2.5rem; }
.drill__item:nth-child(3) { margin-left: 5rem; }
.drill__item:nth-child(4) { margin-left: 7.5rem; }
.drill__title { margin: 0 0 0.3rem; font-size: 1.08rem; font-weight: 700; }
.drill__desc { margin: 0; color: var(--ink-90); font-size: 0.96rem; }
@media (max-width: 700px) {
  .drill__item:nth-child(n) { margin-left: 0; }
  .drill__item + .drill__item::before { left: 1.4rem; }
}
.steps--compact .steps__item { padding: 1.1rem 0; }

/* ---------- Breakdown diagram (assessment page) ---------- */
.breakdown { margin: 0.5rem 0 0; }
.breakdown svg { width: 100%; height: auto; display: block; }
.breakdown--mobile { display: none; max-width: 430px; }
@media (max-width: 700px) {
  .breakdown--desktop { display: none; }
  .breakdown--mobile { display: block; margin-left: auto; margin-right: auto; }
}
