/* ===== Nodal PMO — site stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #0d1826;
  --ink-2: #16263c;
  --paper: #edeeea;
  --paper-2: #e3e5df;
  --graphite: #2b3542;
  --graphite-soft: #5c6773;
  --off-white: #f3f2ee;
  --brass: #c6a15b;
  --brass-deep: #9c7b3d;
  --brass-bright: #d9b876;
  --hairline-dark: rgba(237,238,234,0.14);
  --hairline-light: rgba(13,24,38,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  color: var(--graphite);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
.n-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.n-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.n-eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; display: inline-block; }
.n-eyebrow--dark { color: var(--brass-bright); }
.n-eyebrow--light { color: var(--brass-deep); }

h1, h2, h3 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
section { position: relative; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.n-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.n-btn--brass { background: var(--brass); color: var(--ink); }
.n-btn--brass:hover { background: var(--brass-bright); transform: translateY(-1px); }
.n-btn--outline { background: transparent; border-color: rgba(243,242,238,0.4); color: var(--off-white); }
.n-btn--outline:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.n-btn--dark { background: var(--ink); color: var(--off-white); }
.n-btn--dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.n-link-arrow {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(243,242,238,0.82);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(243,242,238,0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.n-link-arrow:hover { color: var(--brass-bright); border-color: var(--brass-bright); }

/* ================= NAVBAR ================= */
.n-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--hairline-light);
}
.n-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.n-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.n-nav-logo img { height: 34px; width: auto; display: block; }
.n-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.n-nav-links a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}
.n-nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.n-nav-links a:hover { color: var(--ink); }
.n-nav-links a:hover::after, .n-nav-links a.n-active::after { transform: scaleX(1); }
.n-nav-links a.n-active { color: var(--ink); }
.n-nav-cta {
  padding: 11px 22px;
  font-size: 14px;
}
.n-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.n-nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  display: block;
}
.n-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 18px;
  border-top: 1px solid var(--hairline-light);
  margin-top: 8px;
}
.n-nav-mobile a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-light);
}
.n-nav-mobile a:last-child { border-bottom: none; }
.n-nav.n-open .n-nav-mobile { display: flex; }
@media (max-width: 860px) {
  .n-nav-links, .n-nav-cta { display: none; }
  .n-nav-toggle { display: flex; }
}

/* ================= HERO (home) ================= */
.n-hero {
  position: relative;
  background: var(--ink);
  color: var(--off-white);
  padding: 128px 0 116px;
  overflow: hidden;
}
.n-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1780863170532-456cffce4743?fm=jpg&q=70&w=2200&auto=format&fit=crop');
  background-size: cover;
  background-position: center center;
  filter: grayscale(0.4) contrast(1.1) brightness(0.75);
  z-index: 0;
}
.n-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    var(--ink) 0%, var(--ink) 28%,
    rgba(13,24,38,0.82) 42%, rgba(13,24,38,0.42) 60%,
    rgba(13,24,38,0.14) 82%, rgba(13,24,38,0.06) 100%);
}
.n-hero-diagram { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; pointer-events: none; z-index: 2; }
.n-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding-left: max(32px, calc((100vw - 1180px) / 2 + 32px));
  padding-right: 24px;
}
@media (max-width: 900px) { .n-hero-inner { padding-left: 32px; max-width: 100%; } }
@media (max-width: 560px) { .n-hero-inner { padding-left: 22px; padding-right: 22px; } }
@media (max-width: 900px) {
  .n-hero-overlay { background: linear-gradient(180deg, rgba(13,24,38,0.82) 0%, rgba(13,24,38,0.93) 100%); }
}
.n-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.14; margin: 22px 0 24px; color: #fff;  max-width: 780px; }
.n-hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(243,242,238,0.78); max-width: 640px; margin: 0 0 40px; }
.n-hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

/* ================= PROBLEM ================= */
.n-problem { background: var(--paper); padding: 104px 0; }
.n-problem-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 56px; margin-top: 28px; align-items: start; }
.n-problem-rule { background: var(--hairline-light); height: 100%; }
.n-problem h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); color: var(--ink); line-height: 1.25; max-width: 460px; }
.n-problem-body p { font-size: 1.05rem; color: var(--graphite); margin: 0 0 20px; }
.n-pullquote {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brass-deep);
  border-left: 2px solid var(--brass);
  padding-left: 20px;
  margin: 32px 0 0;
}

/* ================= OUTCOMES ================= */
.n-outcomes { background: var(--ink); color: var(--off-white); padding: 76px 0 84px; }
.n-outcomes-head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px;
  margin-bottom: 48px; border-bottom: 1px solid var(--hairline-dark); padding-bottom: 24px;
}
.n-outcomes-head h2 { font-size: 1.5rem; color: #fff; }
.n-outcomes-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.n-outcome { padding: 0 28px; border-left: 1px solid var(--hairline-dark); }
.n-outcome:first-child { padding-left: 0; border-left: none; }
.n-outcome-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 500; color: var(--brass-bright); line-height: 1; margin-bottom: 16px;
}
.n-outcome-label { font-size: 0.94rem; color: rgba(243,242,238,0.82); margin-bottom: 14px; min-height: 66px; }
.n-outcome-client {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(243,242,238,0.5);
}

/* ================= FRAMEWORK ================= */
.n-framework { background: var(--off-white); padding: 108px 0 100px; }
.n-framework-top { max-width: 700px; margin-bottom: 64px; }
.n-framework h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); color: var(--ink); margin: 20px 0 22px; line-height: 1.2; }
.n-framework-intro { font-size: 1.05rem; }
.n-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline-light); border: 1px solid var(--hairline-light); margin-bottom: 56px;
}
.n-pillar { background: var(--off-white); padding: 40px 34px 44px; }
.n-pillar-icon { margin-bottom: 26px; }
.n-pillar h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 12px; }
.n-pillar p { font-size: 0.98rem; color: var(--graphite-soft); margin: 0; }
.n-framework-close {
  max-width: 680px; font-family: 'Spectral', serif; font-style: italic; font-size: 1.2rem;
  color: var(--ink); line-height: 1.5; border-top: 1px solid var(--hairline-light); padding-top: 32px;
}

/* ================= DIAGNOSTIC ================= */
.n-diagnostic {
  background: var(--ink-2); color: var(--off-white); padding: 92px 0;
  border-top: 1px solid var(--brass-deep); border-bottom: 1px solid var(--brass-deep);
}
.n-diagnostic-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.n-diagnostic h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: #fff; margin: 18px 0 18px; }
.n-diagnostic p { font-size: 1.02rem; color: rgba(243,242,238,0.78); max-width: 560px; margin: 0; }

/* ================= ABOUT ================= */
.n-about { background: var(--paper); padding: 108px 0; }
.n-about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
.n-about h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--ink); margin: 18px 0 0; line-height: 1.15; }
.n-about-side { align-self: start; position: sticky; top: 90px; }
.n-about-block { margin-bottom: 34px; }
.n-about-block:last-child { margin-bottom: 0; }
.n-about-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brass-deep); margin-bottom: 12px; display: block;
}
.n-about-block p { font-size: 1.02rem; color: var(--graphite); margin: 0; }
.n-founder-name { font-family: 'Spectral', serif; font-weight: 500; color: var(--ink); }
.n-founder-name-inline { font-family: 'Spectral', serif; font-weight: 500; color: var(--ink); }
.n-founder-card { background: var(--ink); color: var(--off-white); padding: 32px 28px; border-radius: 2px; }
.n-founder-avatar {
  width: 64px;
  height: 64px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensure image stays within circle */
  margin-bottom: 20px;
  background: var(--ink-2); /* Fallback background */
}

.n-founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills circle without distortion */
  display: block;
}

/* If you want a larger avatar on desktop */
@media (min-width: 768px) {
  .n-founder-avatar {
    width: 80px;
    height: 80px;
  }
}
.n-founder-card .n-founder-name { font-size: 1.15rem; color: #fff; margin-bottom: 6px; }
.n-founder-card .n-founder-role {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass-bright);
}

/* ================= CLOSING CTA ================= */
.n-closing { background: var(--ink); color: #fff; padding: 120px 0 130px; text-align: center; overflow: hidden; }
.n-closing-diagram { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; pointer-events: none; }
.n-closing-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.n-closing h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; margin: 20px 0 22px; }
.n-closing p { font-size: 1.08rem; color: rgba(243,242,238,0.78); margin: 0 0 40px; }
.n-closing .n-eyebrow { justify-content: center; }

/* ================= PAGE HEADER (about/services/contact) ================= */
.n-pagehead { position: relative; background: var(--ink); color: var(--off-white); padding: 100px 0 84px; overflow: hidden; text-align: left !important; }
.n-pagehead-diagram { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }
.n-pagehead-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: left;
  padding-left: max(32px, calc((100vw - 1180px) / 2 + 32px)) !important;
  padding-right: 24px;
  margin: 0;
}
.n-pagehead h1 { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; margin: 18px 0 18px; line-height: 1.15; }
.n-pagehead p { font-size: 1.05rem; color: rgba(243,242,238,0.78); margin: 0; max-width: 600px; }
@media (max-width: 900px) { .n-pagehead-inner { padding-left: 32px !important; max-width: 100%; } }
@media (max-width: 560px) { .n-pagehead-inner { padding-left: 22px !important; padding-right: 22px; } }

/* ================= SERVICES ================= */
.n-services { background: var(--off-white); padding: 100px 0; }
.n-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline-light); border: 1px solid var(--hairline-light);
}
.n-service { background: var(--off-white); padding: 44px 36px 48px; }
.n-service-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em;
  color: var(--brass-deep); margin-bottom: 24px; display: block;
}
.n-service-icon { margin-bottom: 22px; }
.n-service h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 14px; }
.n-service p { font-size: 0.98rem; color: var(--graphite-soft); margin: 0; }

/* ================= CONTACT ================= */
.n-contact { background: var(--off-white); padding: 100px 0 110px; }
.n-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.n-info-block { margin-bottom: 36px; }
.n-info-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brass-deep); margin-bottom: 10px; display: block;
}
.n-info-value { font-size: 1.1rem; color: var(--ink); }
.n-info-value a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); }
.n-info-value a:hover { color: var(--brass-deep); }
.n-social-row { display: flex; gap: 16px; margin-top: 6px; }
.n-social-row a {
  width: 38px; height: 38px; border: 1px solid var(--hairline-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.n-social-row a:hover { border-color: var(--brass); background: rgba(198,161,91,0.08); }
.n-form-card { background: var(--ink); color: var(--off-white); padding: 44px; border-radius: 2px; }
.n-field { margin-bottom: 22px; }
.n-field label {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass-bright); margin-bottom: 10px;
}
.n-field input, .n-field textarea {
  width: 100%; background: rgba(243,242,238,0.06); border: 1px solid rgba(243,242,238,0.22);
  border-radius: 2px; padding: 13px 14px; font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.98rem; color: #fff;
}
.n-field input::placeholder, .n-field textarea::placeholder { color: rgba(243,242,238,0.4); }
.n-field input:focus, .n-field textarea:focus { outline: none; border-color: var(--brass); }
.n-field textarea { min-height: 120px; resize: vertical; }
.n-form-note { font-size: 0.85rem; color: rgba(243,242,238,0.5); margin-top: 16px; text-align: center; }
.n-form-card .n-btn { width: 100%; border: none; }

/* ================= FOOTER ================= */
.n-footer { background: var(--ink); color: rgba(243,242,238,0.55); padding: 36px 0; }
.n-footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.04em;
}
.n-footer a { color: rgba(243,242,238,0.55); text-decoration: none; }
.n-footer a:hover { color: var(--brass-bright); }
.n-footer-links { display: flex; gap: 24px; }

/* ================= REVEAL ================= */
.n-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.n-reveal.n-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .n-reveal { opacity: 1; transform: none; transition: none; }
  .n-btn, .n-link-arrow { transition: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .n-problem-grid { grid-template-columns: 1fr; }
  .n-problem-rule { display: none; }
  .n-outcomes-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .n-outcome:nth-child(3) { border-left: none; }
  .n-outcome-label { min-height: 0; }
  .n-pillars { grid-template-columns: 1fr; }
  .n-diagnostic-grid { grid-template-columns: 1fr; text-align: left; }
  .n-diagnostic .n-btn { width: 100%; }
  .n-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .n-about-side { position: static; }
  .n-services-grid { grid-template-columns: 1fr; }
  .n-contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 560px) {
  .n-wrap { padding: 0 22px; }
  .n-hero { padding: 76px 0 64px; }
  .n-problem, .n-framework, .n-about, .n-services, .n-pagehead, .n-contact { padding: 72px 0; }
  .n-outcomes-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .n-outcome { border-left: none; padding-left: 0; }
  .n-hero-actions { gap: 18px; }
  .n-form-card { padding: 30px 24px; }
  .n-footer-inner { flex-direction: column; align-items: flex-start; }
}
