/* INNX.biz static — Connecting the dots
   PPT black-and-white: white paper, black titles, gray body.
   Logo blue sparingly (links). No build step. */

:root {
  --ink: #0a0a0a;
  --ink-muted: #4a4a4a;
  --ink-soft: #6b6b6b;
  --paper: #ffffff;
  --paper-alt: #f7f7f7;
  --line: #e8e8e8;
  --blue: #005080;
  --blue-mid: #3080c0;
  --blue-light: #70a0d0;
  --max: 72rem;
  --pad: 1.5rem;
  --font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--blue-mid); }
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: var(--pad); }

/* Disclosure strip */
.disclosure {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0.55rem var(--pad);
  text-align: center;
  line-height: 1.45;
}
.disclosure strong { color: var(--ink-muted); font-weight: 600; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header.is-hero {
  position: absolute;
  left: 0; right: 0;
  background: transparent;
  border-bottom: none;
}
.site-header.is-hero .nav-link,
.site-header.is-hero .nav-toggle { color: var(--paper); }
.site-header.is-hero .brand-logo { filter: none; }

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand-logo { height: 2rem; width: auto; }
.brand-mark { font-weight: 800; letter-spacing: 0.08em; font-size: 0.95rem; text-transform: uppercase; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  align-items: center;
}
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.35em; }
.site-header.is-hero .nav-link:hover,
.site-header.is-hero .nav-link[aria-current="page"] { color: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
    gap: 0.75rem;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .site-header.is-hero {
    background: rgba(10,10,10,0.92);
  }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 5rem 0;
}
.section--tight { padding: 3.25rem 0; }
.section--alt { background: var(--paper-alt); }
.section--dark {
  /* Closing CTA bar only — avoid mid-page dark panels */
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem 0;
}
.section--dark a { color: var(--paper); text-decoration: underline; }
.section--dark .muted { color: rgba(255,255,255,0.7); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}
.section--dark .eyebrow { color: rgba(255,255,255,0.7); }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--paper); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.15rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 42rem;
}
.section--dark .lead { color: rgba(255,255,255,0.85); }

.muted { color: var(--ink-soft); }
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1.15rem; }
.prose p:last-child { margin-bottom: 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--ink) center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.72) 100%);
}
/* Minimal homepage hero: soft wash for title only — less blackish copy conflict */
.hero--minimal {
  min-height: 72vh;
  align-items: flex-end;
}
.hero--minimal::before {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.22) 45%,
    rgba(0,0,0,0.55) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem var(--pad) 4rem;
}
.hero--minimal .hero-inner {
  padding: 6.5rem var(--pad) 3.25rem;
  max-width: var(--max);
}
.hero h1 { margin-bottom: 1rem; }
.hero--minimal h1 {
  margin-bottom: 0;
  text-shadow: 0 1px 18px rgba(0,0,0,0.35);
}
.hero .lead { color: rgba(255,255,255,0.9); }
.eyebrow--on-hero {
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  margin-bottom: 0.55rem;
}

/* Homepage intro band — lead + CTAs off the dark image (PPT white paper) */
.section--intro {
  background: var(--paper);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.section--intro .lead {
  margin: 0;
  color: var(--ink-muted);
  max-width: 44rem;
}
.section--intro .btn-row { margin-top: 1.35rem; }

/* Site-wide PPT B&W: light paper bands; one strong black closing bar max */
.section--dark .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.section--dark .btn-primary:hover {
  background: var(--paper-alt);
  color: var(--ink);
}
.section--dark .btn-ghost {
  color: var(--paper);
  border-color: rgba(255,255,255,0.7);
}

/* Cards / doors */
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.doors--5 {
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .doors--5 { grid-template-columns: 1fr; }
}

.door {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.5rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}
.door:hover {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  color: inherit;
}
.door .num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.door h3 { margin-bottom: 0.5rem; }
.door p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.pillar .num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.steps .step-n {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.portrait {
  width: 100%;
  max-width: 22rem;
  filter: grayscale(1);
  border: 1px solid var(--line);
}
.portrait-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Profile template: name above; photo+QR tops flush with first bio sentence */
.profile {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.profile__eyebrow {
  margin: 0 0 0.75rem;
}
.profile__name {
  margin: 0 0 1rem;
}
.profile__body {
  display: grid;
  grid-template-columns: 1.25fr auto;
  gap: 2.25rem;
  align-items: start; /* media top = first prose line */
}
.profile__copy .prose > p:first-child {
  margin-top: 0;
}
.profile__media {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.profile__shot,
.profile__qr {
  width: 10.5rem;
  flex: 0 0 10.5rem;
}
.profile__shot .portrait {
  width: 10.5rem;
  height: 10.5rem;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.profile__shot .portrait-caption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.profile__qr {
  text-align: center;
}
.profile__qr a {
  display: block;
  text-decoration: none;
}
.profile__qr img {
  width: 10.5rem;
  height: 10.5rem;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem;
  box-sizing: border-box;
}
.profile__qr-label {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-muted);
}
@media (max-width: 800px) {
  .profile__body {
    grid-template-columns: 1fr;
  }
  .profile__media {
    justify-content: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: #222;
  color: var(--paper);
}
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.section--dark .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Contact form note */
.form-note {
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: var(--paper-alt);
}
.form-note label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.form-note input,
.form-note textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--paper);
}
.form-note textarea { min-height: 8rem; resize: vertical; }
.address-block {
  font-style: normal;
  line-height: 1.7;
}
.address-block a { font-weight: 600; }

/* Redirect notice */
.redirect-note {
  max-width: 36rem;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid var(--line);
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo { height: 1.75rem; width: auto; margin-bottom: 0.75rem; }
.footer-tag {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.footer-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-nav a:hover { color: var(--blue); }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-legal a { color: var(--blue); }

/* 404 */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem var(--pad);
}
.page-404 .wrap { max-width: 32rem; }

/* Solid white header (homepage — black logo + dark nav, no gradient wash) */
.site-header--solid {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}
.site-header--solid .nav-toggle { color: var(--ink); }
.site-header--solid .nav--centered .nav-link { color: var(--blue); }
.site-header--solid .nav--centered .nav-link:hover,
.site-header--solid .nav--centered .nav-link[aria-current="page"] { color: var(--blue-mid); }

/* Homepage hero: full-bleed image + one locked headline */
.hero--home {
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100dvh - 4.5rem);
  align-items: flex-end;
}
.hero--home::before {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.20) 40%,
    rgba(0,0,0,0.62) 100%
  );
}
.hero--home .hero-inner {
  padding: 4rem var(--pad) 3.5rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.hero--home h1 {
  color: var(--paper);
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 38rem;
  text-shadow: 0 1px 18px rgba(0,0,0,0.4);
}
body.home .disclosure { display: none; }

/* Minimal homepage footer — no address, no link farm */
.site-footer--minimal {
  padding: 1.75rem 0 2rem;
}
.footer-minimal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.site-footer--minimal .footer-logo {
  margin-bottom: 0;
  height: 1.5rem;
}
.site-footer--minimal .footer-logo--full {
  height: 3.6rem;
}
.footer-minimal-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.footer-minimal-meta a {
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-minimal-meta a:hover { color: var(--blue); }
.footer-dot {
  margin: 0 0.45rem;
  color: var(--line);
}


/* Hero two-line lock */
.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
  max-width: 32rem;
  color: rgba(255,255,255,0.92);
}

/* Joe: typically likes things centralized */
.hero--home .hero-inner {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero--home .hero-title,
.hero--home .hero-sub,
.hero--home h1,
.hero--home p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.site-footer--minimal .footer-minimal {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}


/* Header: centered menu, full logo far right */
.header-inner--logo-right {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  padding: 0.75rem 1.5rem;
}
.header-inner--logo-right .nav--centered {
  grid-column: 2;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
}
.header-inner--logo-right .brand--right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}
.brand-logo--full {
  width: auto;
  height: 6rem;
  max-width: none;
  object-fit: contain;
}
@media (max-width: 820px) {
  .header-inner--logo-right {
    grid-template-columns: auto 1fr auto;
  }
  .header-inner--logo-right .nav-toggle { grid-column: 1; justify-self: start; }
  .header-inner--logo-right .brand--right { grid-column: 3; }
  .header-inner--logo-right .nav--centered {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Hero copy: title + spaced one-line sub */
.hero--home .hero-inner {
  text-align: center;
  align-items: center;
}
.hero--home .hero-title {
  text-align: center;
  margin: 0 0 1.25rem;
  max-width: none;
  white-space: nowrap;
}
.hero--home .hero-sub--oneline {
  text-align: center;
  margin: 0;
  max-width: min(92vw, 56rem);
  white-space: normal;
  font-size: clamp(0.85rem, 1.55vw, 1.15rem);
  letter-spacing: 0.01em;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .hero--home .hero-title { white-space: normal; }
  .hero--home .hero-sub--oneline {
    white-space: normal;
    max-width: 22rem;
  }
}

.footer-logo--full{width:auto;height:3.6rem;object-fit:contain;}
.site-footer--minimal .footer-logo--full{height:3.6rem;margin-bottom:0;}


/* Top menu: INNX button blue, centered (link count TBD) */
.site-header--solid .nav--centered .nav-link,
.header-inner--logo-right .nav--centered .nav-link {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-header--solid .nav--centered .nav-link:hover,
.site-header--solid .nav--centered .nav-link[aria-current="page"],
.header-inner--logo-right .nav--centered .nav-link:hover,
.header-inner--logo-right .nav--centered .nav-link[aria-current="page"] {
  color: var(--blue-mid);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.doors--2 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.doors--3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.text-link { color: var(--blue); font-weight: 600; text-decoration: none; margin-right: 0.35rem; }
.text-link:hover { color: var(--blue-mid); text-decoration: underline; }

.door--wide { grid-column: 1 / -1; max-width: 48rem; }
.door-points { margin: 0.85rem 0 0.5rem; padding-left: 1.1rem; color: var(--ink-muted); }
.door-points li { margin: 0.35rem 0; }
.door .small { font-size: 0.85rem; margin-top: 0.75rem; }

.portal-lead { margin: 0.35rem 0 1.5rem; max-width: 36rem; }
.door--portal {
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.door--portal p { margin: 0.4rem 0 0; color: var(--ink-muted, #666); font-size: 0.95rem; }
.doors--2.portals { gap: 1.25rem; }

.invite-line {
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 1rem;
}

/* Clean Life — centered composition, even margins */
.page-clean-life main .wrap {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.page-clean-life main .section {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.page-clean-life main .lead,
.page-clean-life main .prose,
.page-clean-life main .clean-life-sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 40rem;
}
.page-clean-life main .grid-2 {
  text-align: center;
  justify-items: center;
}
.page-clean-life main .grid-2 .prose {
  max-width: 28rem;
  width: 100%;
}
.page-clean-life main .btn-row {
  justify-content: center;
}
.page-clean-life main .invite-line {
  white-space: normal;
  overflow-x: visible;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

/* Footer logo → home */
.site-footer--minimal a:has(.footer-logo),
.footer-minimal > a {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}
.site-footer--minimal a:has(.footer-logo):hover .footer-logo,
.footer-minimal > a:hover .footer-logo {
  opacity: 0.85;
}


/* Purpose page: left-aligned reading column (not centered narrow wrap.prose) */
.page-purpose main .wrap > .prose {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.page-purpose main .wrap.prose {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* IBMA page: left-aligned reading column (same pattern as Purpose) */
.page-ibma main .wrap > .prose {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.page-ibma main .wrap.prose {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.page-ibma main .wrap > h1,
.page-ibma main .wrap > .lead,
.page-ibma main .wrap > .eyebrow {
  text-align: left;
}
