/* =========================================================
   StartupTrust — powered by Northern Pixels
   Brand style: MONO CONVICTION
   Off-white + near-black, single signal-red accent
   ========================================================= */

:root {
  /* Palette */
  --paper:       #FAFAF8;   /* off-white background */
  --paper-2:     #F2F2EF;   /* subtle raised panels */
  --ink:         #111111;   /* near-black text */
  --ink-soft:    #3A3A3A;   /* secondary text */
  --ink-mute:    #6B6B6B;   /* muted / captions */
  --dark:        #111111;   /* dramatic dark sections */
  --dark-2:      #161616;   /* footer */
  --on-dark:     #FAFAF8;   /* off-white text on dark */
  --on-dark-mute:#A6A6A4;   /* muted text on dark */
  --line:        #E4E4E2;   /* hairlines on paper */
  --line-dark:   rgba(255,255,255,0.14);
  --accent:      #E5352B;   /* signal red */
  --accent-2:    #FF5147;   /* brighter red for dark bg / hover */
  --accent-ink:  #C42B22;   /* pressed */

  /* Type */
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1140px;
  --readw: 720px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 12px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0 0 1.1em; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 7vw, 5rem) 0; }
.read { max-width: var(--readw); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--accent-2); }
.section--dark .eyebrow::before { background: var(--accent-2); }

/* ---------- Buttons (sharp) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem;
  border-radius: 7px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.section--dark .btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.section--dark .btn--primary:hover { background: #fff; color: var(--ink); border-color: #fff; }
.section--dark .btn--ghost { color: var(--on-dark); border-color: var(--line-dark); }
.section--dark .btn--ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }

.link-arrow {
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1.5px solid transparent;
  transition: gap .15s ease, border-color .15s ease;
}
.link-arrow:hover { gap: 0.7rem; border-color: var(--accent); }
.section--dark .link-arrow { color: var(--accent-2); }
.section--dark .link-arrow:hover { border-color: var(--accent-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,248,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.lockup { display: flex; flex-direction: column; line-height: 1.1; }
.lockup__name {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lockup__name b { color: var(--accent); font-weight: 700; }
.lockup__sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.2rem;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav a:hover { color: var(--accent); }
.nav .btn { padding: 0.58rem 1.1rem; font-size: 0.9rem; }
/* keep button text legible — override the generic .nav a color/hover */
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff !important; }
.nav__links { display: flex; gap: 1.75rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.6vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 15ch;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  max-width: 46ch;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  margin-top: 1.8rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.6rem; }

/* ---------- Dark section (manifesto) ---------- */
.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section--dark h2, .section--dark h3 { color: var(--on-dark); }

.manifesto-body { max-width: var(--readw); }
.manifesto-body p { color: var(--on-dark-mute); font-size: 1.12rem; }
.manifesto-body p.lead { color: var(--on-dark); font-size: 1.3rem; font-weight: 500; }
.manifesto-kicker {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: #fff;
  border-left: 3px solid var(--accent);
  padding-left: 1.4rem;
  margin: 2.6rem 0 2rem;
  max-width: 30ch;
}
.manifesto-cta { margin-top: 1.5rem; }

/* ---------- Reframe / Trust Architecture ---------- */
.section__head { max-width: 30ch; margin-bottom: 1.5rem; }
.section__head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.section__lead { max-width: 62ch; font-size: 1.18rem; color: var(--ink-soft); }
.section__lead strong { color: var(--ink); font-weight: 700; }

.dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.dim {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  background: var(--paper-2);
}
.dim__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.dim h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.8rem 0 0.6rem;
}
.dim p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---------- Invite ---------- */
.invite {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 16px;
  padding: clamp(2.5rem, 6vw, 5rem);
}
.invite .eyebrow { color: var(--accent-2); }
.invite .eyebrow::before { background: var(--accent-2); }
.invite h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--on-dark);
  max-width: 20ch;
}
.invite p { font-size: 1.18rem; color: var(--on-dark-mute); max-width: 54ch; margin-top: 1.4rem; }
.invite .btn { margin-top: 2.2rem; background: var(--accent); color:#fff; border-color: var(--accent); }
.invite .btn:hover { background:#fff; color: var(--ink); border-color:#fff; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.team__label {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.team p { font-size: 1.15rem; color: var(--ink-soft); }
.team p strong { color: var(--ink); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { background: var(--dark); color: var(--on-dark); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 16ch;
}
.contact__intro { color: var(--on-dark-mute); font-size: 1.12rem; margin-top: 1.3rem; max-width: 40ch; }
.contact__note { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--on-dark-mute); margin-top: 2rem; text-transform: uppercase; }

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--on-dark);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255,255,255,0.08);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(166,166,164,0.6); }
.form .btn { margin-top: 0.4rem; justify-self: start; }
.form__status {
  font-size: 0.95rem;
  color: var(--accent-2);
  min-height: 1.2em;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: var(--on-dark-mute); padding: 3.5rem 0 2.5rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.site-footer .lockup__name { color: var(--on-dark); font-size: 1.12rem; }
.site-footer .lockup__name b { color: var(--accent-2); }
.site-footer .lockup__sub { color: var(--on-dark-mute); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.92rem; }
.footer-nav a { color: var(--on-dark-mute); transition: color .15s ease; }
.footer-nav a:hover { color: var(--accent-2); }
.site-footer__copy {
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-mute);
}

/* ---------- Manifesto page ---------- */
.article { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.article__back {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.article__back:hover { color: var(--accent); }
.article h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 18ch;
}
.article__meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.2rem 0 2.8rem;
}
.article__body { max-width: var(--readw); }
.article__body p { font-size: 1.22rem; line-height: 1.72; color: var(--ink-soft); }
.article__body p.lead {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.article__body strong { color: var(--ink); font-weight: 700; }
.article__pull {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2.8rem 0;
}
.article__cta { margin-top: 3.5rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .dimensions { grid-template-columns: 1fr; }
  .team, .contact__grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav { gap: 0.9rem; }
  .site-header__inner { gap: 0.75rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
