/* ==========================================================================
   MAJOR - Technology Advisors
   v4 "Refined" stylesheet
   --------------------------------------------------------------------------
   Single shared stylesheet used by every page. Authored as a small design
   system: tokens → primitives → page sections. Mobile breakpoint at 760px.
   ========================================================================== */

/* ---------- 1. Tokens ----------------------------------------------------- */

:root {
  /* surfaces */
  --bg:         #f4f1ea;   /* warm paper */
  --bg-deeper:  #ebe6db;   /* alt-band paper */
  --paper:      #ffffff;

  /* tonal band fills (muted) */
  --sky:    #e6ecf2;
  --sage:   #e7eadf;
  --butter: #ece4ce;
  --peach:  #ebe0d3;

  /* deeper tones (chips, accents) */
  --sky-deep:    #5a7da8;
  --sage-deep:   #6b8a5a;
  --butter-deep: #a8884a;
  --peach-deep:  #a87357;

  /* ink */
  --ink:      #0f1a2e;
  --ink-soft: #4a5267;
  --muted:    #8a8f9a;
  --rule:     #d8d3c6;

  /* accent (the blue from the logo) */
  --accent:      #1f54c9;
  --accent-deep: #163d96;

  /* type */
  --display: "Jost", "Inter Tight", system-ui, sans-serif;
  --sans:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --page-w:   1280px;
  --gutter:   64px;
  --nav-h:    78px;
  --radius:   4px;
  --radius-lg: 6px;
}

/* ---------- 2. Reset / base ---------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
strong { font-weight: 600; }
em { font-style: italic; }

/* ---------- 3. Layout primitives ----------------------------------------- */

.page  { max-width: var(--page-w); margin: 0 auto; background: var(--bg); }
.section { padding: 80px var(--gutter); position: relative; }
.section--tight  { padding: 40px var(--gutter); }
.section--ink    { background: var(--ink); color: #fff; }
.section--paper  { background: var(--bg-deeper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section--sky    { background: var(--sky);    border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section--sage   { background: var(--sage);   border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section--butter { background: var(--butter); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section--peach  { background: var(--peach);  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-12-7-5 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.grid-elmer  { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: stretch; }

.row    { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.stack  { display: grid; gap: 12px; }

/* ---------- 4. Type ------------------------------------------------------- */

.display { font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; }

.h1 {
  font-family: var(--display); font-weight: 500;
  font-size: 108px; line-height: 1.2; letter-spacing: -0.04em;
  color: var(--ink); max-width: 1000px; margin: 0;
}
.h1--ink  { color: var(--ink); }
.h1--white{ color: #fff; }

.h2 {
  font-family: var(--display); font-weight: 500;
  font-size: 64px; line-height: 0.98; letter-spacing: -0.035em; margin: 0;
}
.h2--ink  { color: var(--ink); }
.h2--white{ color: #fff; }
.h2--lg   { font-size: 72px; line-height: 0.96; letter-spacing: -0.04em; }

.h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.015em; margin: 0;
}

.lead { font-size: 21px; line-height: 1.55; color: var(--ink-soft); max-width: 720px; }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: currentColor;
}
.eyebrow--butter { color: var(--butter-deep); }

.accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.accent--butter { color: var(--butter); }

/* boxed pill phrase inside an .h1 (e.g. "without hiring") */
.pill-phrase {
  background: var(--accent);
  color: #fff;
  padding: 0 22px;
  border-radius: 12px;
  display: inline-block;
  border: 1.5px solid var(--ink);
  box-shadow: 0 6px 0 0 var(--ink);
  transform: rotate(-1.5deg);
  font-weight: 600;
  margin: 8px 0;
}

/* ---------- 5. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.01em;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  cursor: pointer; text-decoration: none;
}
.btn::after {
  content: "→"; font-size: 14px;
}
.btn--big    { padding: 14px 24px; font-size: 15px; }
.btn--dark   { background: var(--ink); border-color: var(--ink); }
.btn--outline{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--white  { background: #fff; color: var(--ink); border-color: #fff; }

/* button used as a real <button> (e.g. form submit) */
button.btn { cursor: pointer; font: inherit; }
button.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- 6. Sticker labels (flat & v3-style pill) -------------------- */

.label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 2px;
  font-family: var(--mono); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
}
.label--ink { background: var(--ink); color: #fff; border-color: var(--ink); }

/* v3-style sticker (used for the "what you skip" trio + section markers) */
.sticker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px;
  background: var(--butter); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--sans); font-weight: 700;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 2px 0 0 var(--ink);
}
.sticker--sky    { background: var(--sky); }
.sticker--sage   { background: var(--sage); }
.sticker--peach  { background: var(--peach); }
.sticker--white  { background: #fff; }
.sticker--ink    { background: var(--ink); color: #fff; box-shadow: 0 2px 0 0 #fff; }
.sticker--accent { background: var(--accent); color: #fff; }
.sticker .glyph  { font-size: 15px; line-height: 1; }

/* section-marker - sticker that bridges a band's top border */
.section-marker {
  position: absolute; top: -22px; left: var(--gutter);
}

/* ---------- 7. Top nav --------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  padding: 22px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  letter-spacing: 0.005em;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav__cta {
  margin-left: 4px;
  padding: 10px 18px; background: var(--ink); color: #fff;
  border-radius: 2px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav__cta::after { content: "→"; }

/* Mobile hamburger button (injected by mta-nav.js on small screens) */
.nav__burger {
  display: none;
  width: 38px; height: 38px;
  background: transparent; border: 1.5px solid var(--ink);
  border-radius: 6px; cursor: pointer; padding: 0;
  position: relative;
  margin-left: 8px;
}
.nav__burger span {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}
.nav__burger span:nth-child(1) { top: 11px; }
.nav__burger span:nth-child(2) { top: 18px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* ---------- 8. Wordmark -------------------------------------------------- */

.wordmark {
  display: inline-flex; flex-direction: column; align-items: center;
  line-height: 1;
}
.wordmark__type {
  font-family: var(--display); font-weight: 300;
  font-size: 20px; letter-spacing: 0.12em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 1px;
}
.wordmark__type .a { position: relative; }
.wordmark__type .a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  transform: translateX(-50%);
  width: 8px; height: 2px; background: var(--accent);
}
.wordmark__sub {
  margin-top: 8px;
  font-family: var(--display); font-weight: 400;
  font-size: 7px; letter-spacing: 0.32em; color: var(--ink);
  opacity: 0.75;
  display: inline-flex; align-items: center; gap: 8px;
}
.wordmark__sub::before, .wordmark__sub::after {
  content: ""; width: 10px; height: 1px; background: var(--ink); opacity: 0.5;
}

/* ---------- 9. Cards & list rows ---------------------------------------- */

.card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card--paper { background: var(--bg); }
.card--ink   { background: var(--ink); color: #fff; }
.card--butter{ background: var(--butter); }
.card--sage  { background: var(--sage); }
.card--sky   { background: var(--sky); }
.card--peach { background: var(--peach); }
.card--dashed{ border-style: solid; border-color: var(--rule); }

.card__num {
  font-family: var(--display); font-weight: 500;
  font-size: 48px; line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.card__title {
  font-family: var(--display); font-weight: 500;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 18px 0 12px;
}
.card__body {
  font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  font-weight: 500;
}
.card--ink .card__body { color: rgba(255,255,255,.78); }

.tick {
  flex: 0 0 22px; height: 22px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.tick--butter { background: var(--butter); color: var(--ink); }
.tick--muted  { background: var(--muted); color: #fff; }

.checks { display: grid; gap: 12px; padding: 0; margin: 0 0 26px; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.card--ink .checks li { color: #fff; }

/* ---------- 10. Stat tiles & rhythm rows -------------------------------- */

.stat-tile {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stat-tile__num {
  font-family: var(--display); font-weight: 500;
  font-size: 44px; line-height: 1; letter-spacing: -0.02em;
}
.stat-tile__label {
  margin-top: 8px; font-size: 14px; color: var(--ink-soft); font-weight: 500;
}

.rhythm-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 16px; align-items: start;
  padding-bottom: 14px; border-bottom: 1px solid var(--bg);
}
.rhythm-row__title {
  font-family: var(--display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 4px;
}
.rhythm-row__body { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- 11. Hero "skip" stickers ------------------------------------ */

.skip-stack {
  position: absolute; top: 120px; right: var(--gutter);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.skip-stack .sticker:nth-child(1) { transform: rotate(4deg); }
.skip-stack .sticker:nth-child(2) { transform: rotate(-3deg); }
.skip-stack .sticker:nth-child(3) { transform: rotate(2deg); }

/* ---------- 12. Elmer feature panel ------------------------------------- */

.elmer { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: stretch; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 500; font-size: 18px;
  letter-spacing: -0.02em; position: relative; flex: 0 0 40px;
}
.avatar::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 9px; height: 9px; border-radius: 999px;
  background: #3ad17a; border: 2px solid var(--bg);
}
.avatar--lg { width: 64px; height: 64px; flex: 0 0 64px; font-size: 30px; }
.avatar--lg::after { width: 14px; height: 14px; }
.avatar--sm { width: 32px; height: 32px; flex: 0 0 32px; font-size: 15px; }
.avatar--sm::after { width: 7px; height: 7px; }

.user-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--sage); color: var(--ink);
  border: 1px solid var(--rule);
  font-family: var(--display); font-weight: 500; font-size: 15px;
  flex: 0 0 36px;
}

.chat {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column;
}
.chat__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--bg); margin-bottom: 16px;
}
.chat__title {
  font-family: var(--display); font-weight: 500;
  font-size: 18px; letter-spacing: -0.01em; line-height: 1;
}
.chat__sub {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.14em;
  text-transform: uppercase; margin-top: 3px;
}
.chat__body { display: grid; gap: 16px; }
.chat__row {
  display: flex; gap: 12px; align-items: flex-end;
}
.chat__row--you { justify-content: flex-end; }
.chat__bubble {
  max-width: 78%;
}
.chat__meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 6px;
}
.chat__row--you .chat__meta { text-align: right; }
.chat__msg {
  padding: 12px 16px; background: #fff; color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  font-size: 14.5px; line-height: 1.5; font-weight: 400;
}
.chat__row--you .chat__msg { background: var(--bg-deeper); }
.chat__input {
  margin-top: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 16px;
  background: var(--bg); border: 1px solid var(--rule);
  border-radius: 999px;
}
.chat__input span:first-child {
  flex: 1; font-size: 14px; color: var(--muted);
  font-family: var(--sans); font-weight: 500;
}
.chat__input button {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  font-size: 18px; font-weight: 600; cursor: pointer;
}

/* feature-grid (Elmer source cards) */
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.source-cell {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 12px 14px;
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start;
}
.source-cell__icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 16px;
}
.source-cell__h { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.2; }
.source-cell__b { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }

/* ---------- 13. Footer CTA ---------------------------------------------- */

.cta-foot {
  background: var(--ink); color: #fff;
  padding: 80px var(--gutter);
  border-top-left-radius: 4px; border-top-right-radius: 4px;
  position: relative; overflow: hidden;
}
.cta-foot .h2 { color: #fff; }
.cta-foot .lead { color: rgba(255,255,255,.72); }
.cta-foot .btn--white {
  border-color: #fff;
}

/* ---------- 14. Imagery placeholder ------------------------------------- */

.img-ph {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, var(--bg-deeper) 0 14px, rgba(0,0,0,0.04) 14px 15px);
  color: var(--ink-soft);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

/* photo tile (actual image, same shape as .img-ph) */
.photo {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  object-fit: cover;
}

/* ---------- 15. Form ---------------------------------------------------- */

.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--muted);
  text-transform: uppercase; font-weight: 500;
}
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 16px; color: var(--ink);
  font-family: var(--sans);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,84,201,0.18);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path d='M1 1l6 6 6-6' stroke='%230f1a2e' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- 16. Helpers ------------------------------------------------- */

.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.text-soft { color: var(--ink-soft); }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }

/* ---------- 17. Responsive - mobile ------------------------------------- */

@media (max-width: 760px) {
  :root { --gutter: 22px; --nav-h: 56px; }

  .nav { padding: 14px 22px; flex-wrap: wrap; }
  .nav__burger { display: inline-block; order: 3; }
  .nav__cta   { padding: 8px 12px; font-size: 12px; order: 2; }

  /* Mobile menu drawer */
  .nav__links {
    order: 4;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__link {
    padding: 12px 4px;
    border-bottom: 1px solid var(--rule);
    width: 100%;
  }
  .nav.is-open .nav__link.is-active {
    border-bottom-color: var(--accent);
  }

  .section { padding: 48px var(--gutter); }
  .section-marker { left: var(--gutter); }

  /* !important so inline grid-template-columns overrides on individual
     pages (contact, retainer, wpr, elmer, services) still collapse
     to a single column on mobile instead of overflowing off-screen. */
  .grid-2, .grid-3, .grid-4, .grid-12-7-5, .grid-elmer, .elmer, .source-grid {
    grid-template-columns: 1fr !important; gap: 14px;
  }

  /* !important so per-page inline font-size overrides (e.g. 96px H1,
     60px H2) still shrink to mobile sizes instead of overflowing. All
     inline values across the site are larger than these, so this only
     ever scales headings down on mobile. */
  .h1 { font-size: 56px !important; line-height: 1.1; }
  .pill-phrase { padding: 0 14px; border-radius: 8px; box-shadow: 0 4px 0 0 var(--ink); margin: 6px 0; }
  .h2 { font-size: 36px !important; }
  .h2--lg { font-size: 44px !important; }
  .h3 { font-size: 22px !important; }
  .lead { font-size: 16px !important; }

  .skip-stack {
    position: static; align-items: stretch; margin-top: 28px;
  }
  .skip-stack .sticker { transform: none !important; }

  .cta-foot { padding: 48px var(--gutter); }

  .img-ph[data-h] { height: var(--mob-h, 220px); }
}
