/* ===========================================================
   Systems Before Spaces — stylesheet
   Base variables/components ported from the Intelligent by Design
   site for visual consistency; manifesto-specific rules appended.
   =========================================================== */

:root {
  --navy: #0d2436;
  --navy-deep: #081722;
  --teal: #1c8c82;
  --teal-light: #2fb3a6;
  --sand: #f6f3ec;
  --sand-dark: #ece6d8;
  --ink: #1c2530;
  --ink-soft: #4b5763;
  --line: #dcd6c8;
  --white: #ffffff;
  --radius: 4px;
  --maxw: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
}

p { margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.9em;
  display: block;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2px;
}
nav.main-nav { display: flex; gap: 2.2rem; align-items: center; }
nav.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
nav.main-nav a:hover { color: var(--navy-deep); }
nav.main-nav a.btn { padding: 10px 18px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.96) translateY(1px); }
.btn-primary { background: var(--navy-deep); color: var(--white); }
.btn-primary:hover { background: var(--teal); }
.btn-outline { border-color: var(--navy-deep); color: var(--navy-deep); background: transparent; }
.btn-outline:hover { background: var(--navy-deep); color: var(--white); }

/* ---------- sections ---------- */

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.navy { background: var(--navy-deep); color: var(--sand); }
section.navy h2, section.navy h3 { color: var(--white); }
section.navy .eyebrow { color: var(--teal-light); }

.page-hero {
  padding: 88px 0 64px;
  background: radial-gradient(circle at 82% 18%, rgba(28,140,130,0.14), transparent 55%), var(--sand);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  max-width: 18ch;
  margin: 0 auto 0.4em;
}
.page-hero .lede {
  max-width: 56ch;
  margin: 0 auto 1.8em;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.page-hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- manifesto hero (statue background) ---------- */

.hero-bg {
  position: relative;
  padding: 140px 0 120px;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(8,23,34,0.55) 0%, rgba(8,23,34,0.78) 55%, rgba(8,23,34,0.96) 100%),
    url("manifesto-bg.webp");
  background-size: cover;
  background-position: center 20%;
  color: var(--sand);
}
.hero-bg .eyebrow { color: var(--teal-light); }
.hero-bg h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  max-width: 20ch;
  margin: 0 auto 0.35em;
}
.hero-bg .lede {
  max-width: 54ch;
  margin: 0 auto 2em;
  color: rgba(246,243,236,0.82);
  font-size: 1.18rem;
}
.hero-bg .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-bg .btn-outline { border-color: rgba(246,243,236,0.5); color: var(--sand); }
.hero-bg .btn-outline:hover { background: var(--sand); color: var(--navy-deep); }
@media (max-width: 720px) {
  .hero-bg { padding: 108px 0 84px; background-position: center 12%; }
}

/* ---------- manifesto typography ---------- */

.manifesto {
  max-width: 66ch;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.manifesto h2.m-title {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  text-align: center;
  margin-bottom: 2.2em;
  font-family: var(--sans);
  font-weight: 600;
}
.manifesto p { margin: 0 0 1.35em; }
.manifesto p.m-emphasis {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.4;
  margin: 1.6em 0;
}
.manifesto p.m-thesis {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--teal);
  text-align: center;
  line-height: 1.3;
  margin: 1.4em 0;
}
.manifesto p.m-lede {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy-deep);
  line-height: 1.5;
  margin-bottom: 1.4em;
}
.manifesto .m-triad {
  border-left: 3px solid var(--teal);
  padding-left: 24px;
  margin: 1.8em 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--navy-deep);
}
.manifesto .m-triad p { margin-bottom: 0.5em; }
.manifesto .m-triad p:last-child { margin-bottom: 0; }
.manifesto .m-questions {
  margin: 2em 0;
  padding: 32px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.manifesto .m-questions p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy-deep);
  margin-bottom: 0.7em;
}
.manifesto .m-questions p:last-child { margin-bottom: 0; }
.manifesto p.m-rejected {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  margin: 1.6em 0;
}
.manifesto p.m-final {
  text-align: center;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-top: 1.2em;
}
.manifesto hr.m-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
  width: 60px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- join / form ---------- */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,140,130,0.14);
}
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; margin-bottom: 0; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form-status.success { display: block; background: rgba(28,140,130,0.1); border: 1px solid var(--teal); color: var(--navy-deep); }
.form-status.error { display: block; background: rgba(196,64,64,0.08); border: 1px solid #c44040; color: #8a2a2a; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.join-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
}
.section-head { max-width: 560px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { text-align: center; }

/* ---------- footer ---------- */

footer.site-footer {
  background: var(--navy-deep);
  color: rgba(246,243,236,0.7);
  padding: 48px 0 28px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .brand { color: var(--white); }
footer a:hover { color: var(--teal-light); }
footer .foot-links { display: flex; gap: 24px; font-size: 0.88rem; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(246,243,236,0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- scroll reveal ---------- */

.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .manifesto { font-size: 1rem; }
  .manifesto p.m-thesis { font-size: 1.5rem; }
  .manifesto p.m-final { font-size: 1.7rem; }
  .form-row { grid-template-columns: 1fr; }
  .join-card { padding: 28px 24px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- What We Design page additions ---------- */

.def-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
}
.def-card {
  border-left: 3px solid var(--teal);
  padding-left: 20px;
}
.def-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}
.def-card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.block-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 12px;
}
.block-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.block-num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}
.block-body h3 {
  margin-bottom: 0.25em;
  font-size: 1.15rem;
}
.block-body p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.layer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.layer-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--white);
}
.layer-list li span.n {
  font-weight: 700;
  color: var(--teal-light);
  min-width: 1.4em;
}

@media (max-width: 720px) {
  .def-grid { grid-template-columns: 1fr; }
  .block-item { gap: 16px; }
}
