/* ============================================================
   FORTERA CONSULTING — Design System
   Structural motif: the identity mark is built from load-bearing
   rectangular forms (beam / support / beam / support). That logic
   carries into layout: sections are marked by a single "beam" —
   a short, deliberately-sized horizontal bar whose width signals
   weight, not a decorative hairline repeated everywhere.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand palette */
  --ink: #0E1A1C;
  --evergreen: #163A35;
  --bone: #F2EEE6;
  --gold: #B68A4E;
  --sage: #84998E;

  /* Derived working tones */
  --bone-dim: #E7E1D4;
  --ink-soft: #16262A;
  --ink-line: rgba(242, 238, 230, 0.14);
  --bone-line: rgba(14, 26, 28, 0.12);

  /* Type */
  --serif: 'EB Garamond', Garamond, Georgia, serif;
  --sans: 'Inter', Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.5rem, 4vw, 3.5rem);
  --content-max: 1180px;
  --measure: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-duration: 700ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, .h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h3, .h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.25;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--evergreen);
  max-width: var(--measure);
}

p, li { max-width: var(--measure); }
.body-copy { font-size: 1.0625rem; color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--ink { background: var(--ink); color: var(--bone); }
.section--evergreen { background: var(--evergreen); color: var(--bone); }
.section--bone-dim { background: var(--bone-dim); }

.section--ink .lede,
.section--evergreen .lede { color: var(--bone); opacity: 0.86; }
.section--ink .body-copy,
.section--evergreen .body-copy { color: var(--bone); opacity: 0.82; }

/* ---------- Structural beam — the recurring device ----------
   A single rectangular bar, weight communicated through width,
   echoing the logo's load-bearing forms. Used once per section
   as a heading marker, never as a decorative repeated rule. */
.beam {
  display: block;
  height: 6px;
  background: var(--gold);
  margin-bottom: 1.75rem;
}
.beam--sm { width: 44px; }
.beam--md { width: 84px; }
.beam--lg { width: 132px; }
.section--ink .beam,
.section--evergreen .beam { background: var(--gold); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-bottom: 1rem; }

/* ---------- Anchor scroll offset ----------
   Sticky nav sits above anchored sections; this keeps section
   headings from landing underneath it on jump/scroll-to. */
[id] {
  scroll-margin-top: 88px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 238, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bone-line);
  transition: background 240ms var(--ease);
}
.site-nav__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-nav__logo { display: flex; align-items: center; }
.site-nav__logo img { height: 30px; width: auto; }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.site-nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--evergreen);
  border-bottom-color: var(--gold);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--bone);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--bone-line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  }
  .site-nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav__links a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--bone-line); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bone); }

.btn--solid {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.btn--solid:hover { background: var(--evergreen); border-color: var(--evergreen); }

.section--ink .btn,
.section--evergreen .btn { border-color: var(--bone); color: var(--bone); }
.section--ink .btn:hover,
.section--evergreen .btn:hover { background: var(--bone); color: var(--ink); }

.text-link {
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity 200ms var(--ease);
}
.text-link:hover { opacity: 0.7; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem);
}
.hero__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
.hero .eyebrow { color: var(--gold); margin-bottom: 1.5rem; }
.hero h1 { color: var(--bone); max-width: 18ch; }
.hero .lede { color: var(--bone); opacity: 0.85; margin-top: 1.75rem; max-width: 42ch; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.75rem; }

/* Structural mark animation — the beams assemble once on load,
   echoing the logo's own construction. This is the one deliberate
   non-user-triggered motion moment on the site. */
.hero__structure {
  position: absolute;
  right: clamp(-4rem, 4vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 520px);
  aspect-ratio: 1 / 1;
  z-index: 1;
  opacity: 0.9;
}
.hero__structure svg rect {
  transform-origin: center;
  animation: beam-rise 900ms var(--ease) both;
}
.hero__structure svg rect:nth-of-type(1) { animation-delay: 120ms; }
.hero__structure svg rect:nth-of-type(2) { animation-delay: 280ms; }
.hero__structure svg rect:nth-of-type(3) { animation-delay: 420ms; }
.hero__structure svg rect:nth-of-type(4) { animation-delay: 560ms; }

@keyframes beam-rise {
  from { opacity: 0; transform: scaleY(0.3) translateY(24px); }
  to { opacity: 1; transform: scaleY(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__structure svg rect { animation: none; opacity: 1; }
}
@media (max-width: 900px) {
  .hero__structure { display: none; }
}

/* ---------- Diagnostic / signal cards ---------- */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--bone-line);
  border: 1px solid var(--bone-line);
}
.signal-card {
  background: var(--bone);
  padding: 1.9rem 1.75rem;
}
.signal-card p { font-size: 1rem; color: var(--ink-soft); max-width: none; }

/* ---------- Pillar / offering cards ----------
   Sharp corners, no shadow. Weight communicated via a top beam
   whose width varies per card — same logic as the logo's beams,
   not a uniform decorative treatment. */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-line);
}
.section--bone-dim .pillar-grid,
.pillar-grid.on-light { background: var(--bone-line); }

.pillar {
  background: var(--ink);
  padding: clamp(2rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pillar__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
}
.pillar h3 { color: var(--bone); }
.pillar p { color: var(--bone); opacity: 0.78; font-size: 1rem; }

@media (max-width: 760px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ---------- Process steps (true sequence — numbering earned) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.process__step {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}
.process__num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--sage);
  display: block;
  margin-bottom: 0.6rem;
}
.process__step h3 { margin-bottom: 0.6rem; }
.process__step p { font-size: 1rem; color: var(--ink-soft); }
.section--ink .process__step p,
.section--evergreen .process__step p { color: var(--bone); opacity: 0.82; }

@media (max-width: 820px) {
  .process { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ---------- Outcome list ---------- */
.outcome-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 2.5rem;
  margin-top: 2rem;
}
.outcome-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.0625rem;
}
.outcome-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 3px;
  background: var(--gold);
}
@media (max-width: 640px) {
  .outcome-list { grid-template-columns: 1fr; }
}

/* ---------- Two column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Founder block ---------- */
.founder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
.founder-mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.founder-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.founder-title { color: var(--sage); font-size: 0.95rem; margin-top: 0.2rem; }
@media (max-width: 560px) {
  .founder-card { grid-template-columns: 1fr; }
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 1.4rem;
  max-width: 640px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--evergreen);
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sage);
  background: var(--bone);
  color: var(--ink);
  border-radius: 0;
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--optional label span { color: var(--sage); font-weight: 500; }
.form__note { font-size: 0.875rem; color: var(--sage); }

/* ---------- Form status / honeypot ---------- */
.form-status {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  display: none;
}
.form-status.is-success { display: block; color: var(--evergreen); }
.form-status.is-error { display: block; color: #8a3b2e; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: 3.5rem 2.25rem;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink-line);
}
.site-footer__logo img { height: 26px; }
.site-footer__nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.site-footer__nav a {
  text-decoration: none;
  color: var(--bone);
  opacity: 0.85;
  font-size: 0.9rem;
}
.site-footer__nav a:hover { opacity: 1; color: var(--gold); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--bone);
  opacity: 0.6;
}
.site-footer__bottom a { text-decoration: underline; color: inherit; }

/* ---------- Scroll reveal ----------
   One quiet effect, applied at section level (not per-card), so it
   reads as a single restrained rhythm rather than staggered noise. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--reveal-duration) var(--ease),
              transform var(--reveal-duration) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus {
  left: var(--gutter);
  top: 0.75rem;
}
