@import url("https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&family=Lusitana:wght@400;700&family=Vollkorn+SC:wght@600;700&display=swap");

:root {
  color-scheme: light;
  --deep-green: #102821;
  --pine: #173a32;
  --creek: #1f6972;
  --creek-dark: #174c55;
  --off-white: #f5efe3;
  --paper: #fffaf0;
  --charcoal: #202522;
  --muted: #5d6861;
  --mist: #d8dfd8;
  --copper: #b97138;
  --line: rgba(32, 37, 34, 0.14);
  --line-dark: rgba(245, 239, 227, 0.18);
  --shadow: 0 24px 70px rgba(16, 40, 33, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lusitana", Georgia, "Times New Roman", serif;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--deep-green);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

boguefala-logo {
  display: inline-block;
  width: 236px;
  height: 58px;
  flex: 0 0 auto;
}

.brand {
  position: relative;
  display: inline-block;
  width: 236px;
  height: 58px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  position: absolute;
  left: 0;
  top: 9px;
  width: 212px;
  height: 42px;
  display: block;
  overflow: visible;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  position: absolute;
  left: 62px;
  top: 1px;
  z-index: 1;
  display: block;
  width: 164px;
  line-height: 0.9;
}

.brand-text strong {
  display: block;
  color: var(--deep-green);
  font-family: "Cedarville Cursive", "Brush Script MT", cursive;
  font-size: 2.18rem;
  font-weight: 400;
  line-height: 1;
}

.brand-text small {
  position: absolute;
  left: 0;
  top: 39px;
  display: block;
  margin-top: 0;
  color: var(--muted);
  font-family: "Vollkorn SC", Georgia, serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-family: "Vollkorn SC", Georgia, serif;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--deep-green);
  background: rgba(31, 105, 114, 0.1);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--deep-green);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(4px);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-green);
  color: var(--off-white);
}

.home-hero {
  min-height: 690px;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.04) brightness(0.82);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 15, 0.94) 0%, rgba(7, 18, 15, 0.74) 43%, rgba(7, 18, 15, 0.26) 78%),
    linear-gradient(0deg, rgba(7, 18, 15, 0.68) 0%, rgba(7, 18, 15, 0.08) 42%),
    radial-gradient(circle at 72% 20%, rgba(185, 113, 56, 0.18), transparent 34%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 92px;
  max-width: 760px;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
}

.hero-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--off-white);
  font-family: "Vollkorn SC", Georgia, serif;
  font-weight: 700;
  font-size: 1.28rem;
}

.hero-brand span {
  color: rgba(245, 239, 227, 0.78);
  font-size: 0.98rem;
  font-weight: 600;
}

h1 {
  font-size: 4.28rem;
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero-lede {
  max-width: 680px;
  color: rgba(245, 239, 227, 0.88);
  font-size: 1.22rem;
  line-height: 1.58;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: "Vollkorn SC", Georgia, serif;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--copper);
  color: #fff8ef;
  border-color: rgba(255, 255, 255, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #a96531;
}

.button-secondary {
  background: rgba(245, 239, 227, 0.08);
  color: var(--off-white);
  border-color: rgba(245, 239, 227, 0.32);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(245, 239, 227, 0.16);
}

.origin-line {
  color: rgba(245, 239, 227, 0.78);
  font-size: 0.95rem;
}

.section {
  padding: 92px 0;
}

.section > *,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--creek);
  font-family: "Vollkorn SC", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h2 {
  color: var(--deep-green);
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  color: var(--deep-green);
  font-size: 1.42rem;
  line-height: 1.18;
  letter-spacing: 0;
  margin-bottom: 12px;
}

h4 {
  color: var(--deep-green);
  font-size: 1rem;
  margin-bottom: 12px;
}

.section-copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-copy p {
  margin-bottom: 18px;
}

.muted-section {
  background:
    linear-gradient(rgba(16, 40, 33, 0.04), rgba(16, 40, 33, 0.04)),
    var(--off-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 18px 42px rgba(16, 40, 33, 0.08);
}

.service-card p,
.project-card p,
.project-card li {
  color: var(--muted);
}

.card-kicker {
  color: var(--copper);
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.research-band {
  background: var(--deep-green);
  color: var(--off-white);
}

.research-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.research-panel h2,
.research-panel .eyebrow {
  color: var(--off-white);
}

.research-panel .section-copy {
  color: rgba(245, 239, 227, 0.78);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--creek);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.research-panel .text-link {
  color: #f2c391;
}

.about-preview {
  background: var(--paper);
}

.cta-section {
  padding: 82px 0;
  background: var(--creek-dark);
  color: var(--off-white);
}

.cta-content {
  max-width: 790px;
}

.cta-content h2,
.cta-content .eyebrow {
  color: var(--off-white);
}

.cta-content p {
  color: rgba(245, 239, 227, 0.82);
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(16, 40, 33, 0.95), rgba(23, 58, 50, 0.88)),
    var(--deep-green);
  color: var(--off-white);
  border-bottom: 1px solid var(--line-dark);
}

.page-hero-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 78px;
}

.page-hero h1 {
  font-size: 3.65rem;
  line-height: 1.02;
  margin-bottom: 20px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(245, 239, 227, 0.82);
  font-size: 1.15rem;
}

.page-hero .eyebrow {
  color: #f2c391;
}

.service-list {
  display: grid;
  gap: 18px;
}

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 32px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.pillar p {
  color: var(--muted);
}

.deliverables {
  padding: 20px;
  border-radius: 8px;
  background: rgba(31, 105, 114, 0.08);
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

.notice {
  max-width: 900px;
  padding: 30px;
  border-left: 5px solid var(--copper);
  border-radius: 8px;
  background: rgba(31, 105, 114, 0.08);
}

.notice p {
  color: var(--muted);
  font-size: 1.08rem;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--off-white);
  color: var(--deep-green);
  font-weight: 800;
  font-size: 0.92rem;
}

.template-note {
  color: var(--muted);
}

.template-list ul {
  columns: 2;
  column-gap: 34px;
  color: var(--muted);
}

.project-card-large {
  padding: 28px;
}

.project-card-large ul {
  margin-top: 18px;
}

.about-story .section-copy p {
  font-size: 1.08rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
}

.contact-detail {
  margin-top: 30px;
  padding: 22px;
  border-left: 5px solid var(--creek);
  border-radius: 8px;
  background: rgba(31, 105, 114, 0.08);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--off-white);
  box-shadow: var(--shadow);
}

.contact-form label {
  color: var(--deep-green);
  font-size: 0.92rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(32, 37, 34, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf7;
  color: var(--charcoal);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(31, 105, 114, 0.2);
  border-color: var(--creek);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 0;
  color: var(--muted);
}

.site-footer strong {
  color: var(--deep-green);
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--deep-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 92px;
    padding-bottom: 76px;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.12rem;
  }

  .page-hero h1 {
    font-size: 2.85rem;
  }

  .section-grid,
  .research-panel,
  .pillar,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .card-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 50px rgba(16, 40, 33, 0.12);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .home-hero {
    min-height: 590px;
  }

  .hero-image {
    object-position: 70% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 25, 22, 0.94) 0%, rgba(10, 25, 22, 0.78) 62%, rgba(10, 25, 22, 0.38) 100%),
      linear-gradient(0deg, rgba(10, 25, 22, 0.68) 0%, rgba(10, 25, 22, 0) 48%);
  }

  .hero-content {
    width: min(var(--max), calc(100% - 32px));
    margin-left: 16px;
    padding: 70px 0 58px;
  }

  .hero-brand {
    font-size: 1.06rem;
  }

  .hero-brand span {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.54rem;
    line-height: 1;
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section > *,
  .site-footer,
  .nav {
    width: min(var(--max), calc(100% - 32px));
  }

  .page-hero-inner {
    width: calc(100% - 32px);
    padding: 64px 0 58px;
  }

  .page-hero h1 {
    font-size: 2.26rem;
  }

  .service-card,
  .project-card,
  .pillar,
  .contact-form {
    padding: 20px;
  }

  .template-list ul {
    columns: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-text small {
    display: none;
  }

  h1 {
    font-size: 2.18rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.78rem;
  }
}

/* ---------- Subpage hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

/* ---------- Scroll reveal + card tilt ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.service-card,
.project-card {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
