/* ============================================================
   MotusBridge Partners
   Brand tokens locked: six-colour palette, Cormorant Garamond
   + Josefin Sans. Gold appears only at points of connection.
   ============================================================ */

:root {
  --deep-naval: #060F16;
  --naval-ink:  #0D1820;
  --warm-cream: #F2EFE9;
  --gold:       #B8965A;
  --stone:      #E4DFD6;
  --brown:      #6A5A4A;

  --display: "Cormorant Garamond", Georgia, serif;
  --body:    "Josefin Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --prose: 780px;

  --band-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: 0.3px;
  color: var(--naval-ink);
  background: var(--warm-cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--deep-naval); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Type scale ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.875rem);
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  letter-spacing: -0.25px;
}

h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  letter-spacing: 0;
}

p { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  line-height: 1.4;
}

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.small { font-size: 1rem; }
.fine  { font-size: 0.8125rem; line-height: 1.75; color: var(--brown); }
.note  { font-style: italic; color: var(--brown); font-size: 1rem; }

a { color: inherit; }

/* ---------- Layout ---------- */

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

.prose { max-width: var(--prose); }
.centered { margin-left: auto; margin-right: auto; text-align: center; }

.band {
  padding-top: var(--band-y);
  padding-bottom: var(--band-y);
}

.band--darkest  { background: var(--deep-naval); color: var(--stone); }
.band--dark     { background: var(--naval-ink);  color: var(--stone); }
.band--lightest { background: var(--warm-cream); color: var(--naval-ink); }
.band--light    { background: var(--stone);      color: var(--naval-ink); }

.band--darkest h1, .band--darkest h2, .band--darkest h3,
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--warm-cream); }

.stack > * + * { margin-top: 26px; }
.stack-tight > * + * { margin-top: 16px; }

/* ---------- Header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--deep-naval);
  border-bottom: 1px solid rgba(184, 150, 90, 0.18);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 90px;
}

.masthead__logo { display: block; line-height: 0; }
.masthead__logo img { height: 40px; width: auto; }

.nav {
  display: flex;
  gap: 38px;
  align-items: center;
}

.nav a {
  font-size: 0.8125rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stone);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--warm-cream);
  border-bottom-color: var(--gold);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(226, 223, 214, 0.3);
  color: var(--stone);
  font-family: var(--body);
  font-size: 0.6875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 36px;
  border: 1px solid var(--gold);
  border-radius: 0;
  color: var(--naval-ink);
  background: transparent;
  cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

.band--darkest .btn,
.band--dark .btn { color: var(--warm-cream); }

.btn:hover {
  background: var(--gold);
  color: var(--deep-naval);
}

.btn-quiet {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease);
}

.btn-quiet:hover { border-bottom-color: var(--gold); }

/* ---------- Signature: the cantilever rule ----------
   Two arms reach inward from opposite anchors and meet at a
   gold node. Used wherever the page changes register.        */

.cant-rule {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
}

.cant-rule--center { margin-left: auto; margin-right: auto; }

.cant-rule__arm {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

.cant-rule__node {
  width: 7px;
  height: 7px;
  margin: 0 12px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.hair {
  width: 60px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0;
}

.hair--center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */

.hero {
  background: var(--deep-naval);
  color: var(--stone);
  display: flex;
  align-items: center;
  min-height: 82vh;
  padding: 96px 0;
}

.hero--short { min-height: 46vh; padding: 84px 0; }

.hero__inner { max-width: 700px; }
.hero h1 { color: var(--warm-cream); margin-top: 26px; }
.hero .lede { margin-top: 26px; color: var(--stone); }
.hero .btn { margin-top: 40px; }
.hero .hair { margin-top: 22px; }

/* ---------- Practice cards ---------- */

.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.card {
  background: var(--naval-ink);
  color: var(--stone);
  padding: 52px 46px;
  display: flex;
  flex-direction: column;
}

.card h3 { color: var(--warm-cream); margin-top: 14px; }
.card p { margin-top: 22px; font-size: 1rem; }
.card .btn-quiet { margin-top: auto; padding-top: 34px; }

/* ---------- Four-across ---------- */

.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 56px;
}

.quad__item .hair { margin: 16px 0; width: 30px; }
.quad__item p { font-size: 0.9375rem; }

/* ---------- Approach: the span ----------
   Stages render as a cantilever built outward. The spine is
   the deck; each gold node is a gate that has been cleared.  */

.span-list { margin-top: 56px; }

.span-stage {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 44px;
  padding: 46px 0;
  border-top: 1px solid rgba(13, 24, 32, 0.16);
  position: relative;
}

.span-stage__label { padding-top: 4px; }
.span-stage__label h3 { margin-top: 10px; }

.span-stage__body p { font-size: 1rem; }

.gate {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(184, 150, 90, 0.35);
}

.gate__node {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-top: 9px;
  flex: none;
}

.gate__text {
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}

.gate__text strong {
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: var(--gold);
  display: block;
  margin-bottom: 5px;
}

/* ---------- Phases ---------- */

.phase {
  padding: 44px 0;
  border-top: 1px solid rgba(13, 24, 32, 0.16);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 44px;
}

.phase h3 { margin-top: 10px; }
.phase p { font-size: 1rem; }
.phase__meta {
  font-size: 0.8125rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 20px;
}

/* ---------- Trio ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 52px;
}

.trio__item h3 { margin-top: 12px; }
.trio__item p { margin-top: 16px; font-size: 0.9375rem; }

/* ---------- Split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.split--portrait { grid-template-columns: 0.72fr 1fr; align-items: start; }
.split--form { grid-template-columns: 1.2fr 1fr; }

.tick {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.tick li {
  padding-left: 22px;
  position: relative;
  font-size: 1rem;
  margin-bottom: 12px;
}

.tick li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Portrait placeholder ---------- */

.portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--naval-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 223, 214, 0.35);
  font-size: 0.6875rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}

/* ---------- Form ---------- */

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 9px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--naval-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(13, 24, 32, 0.28);
  border-radius: 0;
  padding: 12px 2px;
  transition: border-color 300ms var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */

.foot {
  background: var(--deep-naval);
  color: var(--stone);
  padding: 84px 0 46px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: 44px;
}

.foot__mark { height: 38px; width: auto; margin-bottom: 16px; }
.foot__word { height: 42px; width: auto; margin-bottom: 20px; }

.foot h4 {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.6875rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 11px; }

.foot a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease);
}

.foot a:hover { border-bottom-color: var(--gold); }
.foot p { font-size: 0.875rem; margin-bottom: 9px; }

.foot__legal {
  margin-top: 62px;
  padding-top: 30px;
  border-top: 1px solid rgba(226, 223, 214, 0.12);
}

.foot__legal p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(226, 223, 214, 0.55);
  max-width: 880px;
}

/* ---------- Motion ---------- */

.rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .duo, .trio, .split, .split--portrait, .split--form { grid-template-columns: 1fr; gap: 40px; }
  .quad { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .span-stage, .phase { grid-template-columns: 1fr; gap: 18px; }
  .split--portrait .portrait { max-width: 340px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .masthead__inner { height: 70px; }
  .masthead__logo img { height: 31px; }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--deep-naval);
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 26px;
    border-bottom: 1px solid rgba(184, 150, 90, 0.18);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; }
  .nav__toggle { display: block; }
  .quad { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 34px; }
  .card { padding: 40px 30px; }
  .hero { min-height: 74vh; }
}
