/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:            #f5f0e8;
  --bg-card:       #ffffff;
  --bg-secondary:  #ede8de;
  --text:          #1a1714;
  --text-muted:    #6b6560;
  --gold:          #a07828;
  --gold-hover:    #8a6620;
  --border:        #d8d0c0;
  --border-accent: #c9a84c;
  --nav-bg:        #1a1714;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-w: 1120px;
  --section-gap: 120px;
  --container-px: clamp(24px, 5vw, 80px);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--border);
}

.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section__headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 56px;
  max-width: 600px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  cursor: pointer;
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: #f5f0e8;
  border: 1px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-accent);
}
.btn--outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--lg { padding: 18px 40px; font-size: 15px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 23, 20, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 7px 16px;
  border-radius: 2px;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  transition: background 0.15s !important;
}
.nav__cta:hover {
  background: var(--gold) !important;
  color: #f5f0e8 !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 140px;
  padding-bottom: var(--section-gap);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}

.hero__content { max-width: 620px; }

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero__sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  justify-content: center;
}

.hero__photo-frame {
  width: 300px;
  height: 380px;
  border: 1px solid var(--border-accent);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--border);
  transform: translate(8px, 8px);
  z-index: -1;
}

.hero__photo-placeholder {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 600;
  color: var(--border-accent);
  letter-spacing: 0.05em;
}

.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CREDIBILITY BAR
   ============================================================ */
.credibility {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 20px;
  background: var(--bg-secondary);
}

.credibility__list {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.credibility__list li {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.credibility__list .sep {
  color: var(--border-accent);
}

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.ecosystem__card {
  background: var(--bg-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}

.ecosystem__card:hover {
  background: #f5f0e8;
}

.ecosystem__card--active {
  background: #ede8de;
}

.ecosystem__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ecosystem__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ecosystem__tag--active {
  color: var(--gold);
}

.ecosystem__current {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 2px;
}

.ecosystem__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.ecosystem__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.ecosystem__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.03em;
  transition: color 0.15s;
  margin-top: 8px;
  align-self: flex-start;
}
.ecosystem__link:hover { color: var(--gold-hover); }

/* ============================================================
   PROBLEM / INTERVENTION
   ============================================================ */
.problem {
  background: var(--bg-secondary);
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 60px;
  align-items: start;
}

.problem__divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.problem__col-head {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.problem__list li {
  font-size: 15px;
  color: var(--text-muted);
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.problem__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--border-accent);
  border-radius: 50%;
}

.problem__list--gold li {
  color: var(--text);
}

.problem__list--gold li::before {
  background: var(--gold);
}

/* ============================================================
   ENGAGEMENTS
   ============================================================ */
.section__subline {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 580px;
  margin-top: -36px;
  margin-bottom: 48px;
}

.engagements__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  background: var(--bg-card);
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.2s;
}

.card:hover { background: #f5f0e8; }

.card--cta {
  background: #ede8de;
}
.card--cta:hover { background: #e5dfd4; }

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.card__tag--muted {
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 2px;
}

.card__num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--border);
  font-family: var(--font-sans);
}

.card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card__included-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.card__bullets {
  list-style: none;
  margin-bottom: 20px;
}

.card__bullets li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 9px 0 9px 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.5;
}

.card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--border-accent);
  border-radius: 50%;
}

.card__outcome {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  padding: 14px 0 0;
  margin-top: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card__outcome span {
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.card--cta .btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* ============================================================
   WHO I WORK WITH
   ============================================================ */
.who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.who__card {
  background: var(--bg-card);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.who__card--axis {
  border-top: 2px solid var(--border-accent);
  background: #fffdf7;
}

.who__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.who__axis-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  border: 1px solid var(--border-accent);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.who__icon {
  color: var(--gold);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.who__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.who__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.who__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
  flex: 1;
}

.who__list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-block: 10px;
  border-top: 1px solid var(--border);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.who__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--border-accent);
  border-radius: 50%;
}

.who__axis-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.03em;
  transition: color 0.15s;
  margin-top: 8px;
  align-self: flex-start;
}
.who__axis-link:hover { color: var(--gold-hover); }

/* ============================================================
   INSIGHTS
   ============================================================ */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.insight-card {
  background: var(--bg-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
}

.insight-card:hover { background: #f5f0e8; }

.insight-card__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.insight-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.insight-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.insight-card__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.03em;
  transition: color 0.15s;
  align-self: flex-start;
}
.insight-card__link:hover { color: var(--gold-hover); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center;
}

.contact__inner {
  max-width: 720px;
}

.contact__headline {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.contact__email {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact__email a {
  color: var(--gold);
  transition: color 0.15s;
}
.contact__email a:hover { color: var(--gold-hover); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding-block: 48px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 16px 40px;
  align-items: start;
}

.footer__brand {
  grid-column: 1;
  grid-row: 1;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.footer__tagline {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer__nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: 28px;
  align-items: center;
}

.footer__nav a {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.footer__nav a:hover { color: var(--text); }

.footer__copy {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 11px;
  color: var(--border-accent);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-gap: 80px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__image { order: -1; }

  .hero__photo-frame {
    width: 220px;
    height: 280px;
  }

  .ecosystem__grid {
    grid-template-columns: 1fr;
  }

  .problem__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .problem__divider { display: none; }

  .engagements__grid { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr; }
  .who__card--axis { border-top: 1px solid var(--border); border-left: 2px solid var(--border-accent); }
  .insights__grid { grid-template-columns: 1fr; }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__nav {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer__copy { grid-row: 3; }
}

@media (max-width: 640px) {
  :root { --section-gap: 64px; }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 23, 20, 0.99);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-block: 8px;
  }

  .nav__links.is-open { display: flex; }

  .nav__links li { width: 100%; }

  .nav__links a {
    display: block;
    padding: 14px var(--container-px);
    font-size: 14px;
  }

  .nav__cta {
    margin: 8px var(--container-px);
    display: inline-block;
    border-radius: 2px;
  }

  .nav__toggle { display: flex; }

  .hero { min-height: auto; padding-top: 100px; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .credibility__list { gap: 10px 8px; }
  .credibility__list .sep { display: none; }

  .card, .who__card, .insight-card, .ecosystem__card {
    padding: 32px 24px;
  }

  .contact__headline { font-size: 24px; }

  .operates__body { font-size: 17px; }
  .operates__lead { font-size: 21px; }
}

/* ============================================================
   HOW BARNES OPERATES
   ============================================================ */
.operates {
  background: var(--bg-secondary);
  padding-block: 100px;
}

.operates__inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.operates__label {
  margin-bottom: 40px;
}

.operates__body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.operates__lead {
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}
