/* =========================================================
   CARPE MUTATIO — style.css
   Color palette preserved from carpemutatio.com:
     Cream bg:   #f4f3ef
     Olive:      #6e7550  (primary brand)
     Olive dark: #4a5035
     Olive mid:  #8a9160
     Charcoal:   #2d2d2b
     Mid-grey:   #666662
     Light grey: #c8c8c2
   ========================================================= */

/* ── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #f4f3ef;
  color: #2d2d2b;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Typography Scale ──────────────────────────────────── */
.display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.1;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
}

p {
  font-size: 1rem;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

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

.alt-bg {
  background-color: #eceae4;
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header {
  max-width: 1060px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e7550;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 300;
  color: #2d2d2b;
  line-height: 1.18;
}

.section-intro {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #555552;
  max-width: 1040px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.75rem;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: #6e7550;
  color: #f4f3ef;
}

.btn-primary:hover {
  background-color: #4a5035;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 80, 53, 0.25);
}

.btn-ghost {
  background-color: transparent;
  color: #6e7550;
  border: 1.5px solid #6e7550;
}

.btn-ghost:hover {
  background-color: #6e7550;
  color: #f4f3ef;
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 0.95rem;
}

/* ── Site Header / Nav ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(244, 243, 239, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #dddbd5;
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(45, 45, 43, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #555552;
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  transition: color 0.18s;
}

.nav-link:hover {
  color: #6e7550;
}

.nav-cta {
  margin-left: 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.25rem;
  background-color: #6e7550;
  color: #f4f3ef;
  border-radius: 2px;
  transition: background-color 0.18s, transform 0.18s;
}

.nav-cta:hover {
  background-color: #4a5035;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #6e7550;
  transition: all 0.22s ease;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  max-width: 1120px;
  margin-inline: auto;
}

.hero-bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  overflow: hidden;
}

.hero-svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-width: 900px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  padding-top: clamp(2rem, 6vw, 4rem);
}

.hero-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e7550;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.95rem, 3.5vw, 3.15rem);
  font-weight: 300;
  color: #2d2d2b;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: normal;
  color: #6e7550;
  font-weight: 300;
}

.hero-sub {
  font-size: 1.05rem;
  color: #555552;
  margin-bottom: 2.25rem;
  max-width: 680px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-quote-block {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 6vw, 5rem);
  max-width: 588px;
  align-self: flex-end;
  margin-left: auto;
}

.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: #666662;
  line-height: 1.55;
  text-align: right;
  border-right: 3px solid #6e7550;
  padding-right: 1.5rem;
}

/* ── Section Divider ─────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1.5rem;
  border-top: 1px solid #d5d3cd;
  border-bottom: 1px solid #d5d3cd;
  background-color: #eceae4;
}

.divider-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a9160;
}

/* ── Services Grid ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5px;
  background-color: #c8c8c2;
  border: 1.5px solid #c8c8c2;
}

.service-card {
  background-color: #f4f3ef;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background-color 0.2s;
  cursor: default;
}

.service-card:hover {
  background-color: #ededea;
}

.service-icon {
  color: #6e7550;
  margin-bottom: 0.25rem;
}

.service-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #8a9160;
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #2d2d2b;
  line-height: 1.25;
}

.service-desc {
  font-size: 0.92rem;
  color: #666662;
  line-height: 1.65;
  flex: 1;
}

/* ── Experience Grid ─────────────────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.exp-card {
  padding: 2rem 1.75rem;
  border-left: 3px solid #6e7550;
  background-color: #f4f3ef;
  transition: border-color 0.2s, transform 0.2s;
}

.exp-card:hover {
  border-color: #4a5035;
  transform: translateX(4px);
}

.exp-icon {
  color: #6e7550;
  margin-bottom: 1rem;
}

.exp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #2d2d2b;
  margin-bottom: 0.65rem;
}

.exp-desc {
  font-size: 0.93rem;
  color: #666662;
  line-height: 1.65;
}

/* ── Clients ─────────────────────────────────────────────── */
.clients-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.clients-text .section-title {
  margin-bottom: 1.25rem;
}

.clients-body {
  font-size: 1.02rem;
  color: #555552;
  line-height: 1.7;
}

.clients-stat-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #d5d3cd;
}

.stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 300;
  color: #6e7550;
  line-height: 1;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #888884;
}

/* ── Engagements ─────────────────────────────────────────── */
.engagements-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #c8c8c2;
}

.engagement-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid #c8c8c2;
  transition: background-color 0.18s, padding 0.18s;
  padding-inline: 1rem;
}

.engagement-item:hover {
  background-color: #e8e7e1;
  padding-inline: 1.5rem;
}

.engagement-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e7550;
  background-color: rgba(110, 117, 80, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  width: fit-content;
  grid-row: 1;
}

.engagement-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #2d2d2b;
  margin-bottom: 0.15rem;
  grid-row: 2;
}

.engagement-desc {
  font-size: 0.93rem;
  color: #666662;
  line-height: 1.65;
  grid-row: 3;
  max-width: 680px;
}

.engagement-item:hover .engagement-tag {
  background-color: rgba(110, 117, 80, 0.18);
}

/* ── About ───────────────────────────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-text .section-label {
  margin-bottom: 0.5rem;
}

.about-text .section-title {
  margin-bottom: 2rem;
}

.about-body {
  font-size: 1rem;
  color: #555552;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.about-body:last-child {
  margin-bottom: 0;
}

.about-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-name-block {
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #6e7550;
}

.about-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: #2d2d2b;
  margin-bottom: 0.25rem;
}

.about-role-label {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8a9160;
  text-transform: none;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.credential {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.75rem;
  border-left: 2px solid #c8c8c2;
  transition: border-color 0.18s;
}

.credential:hover {
  border-color: #6e7550;
}

.cred-org {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d2d2b;
}

.cred-role {
  font-size: 0.8rem;
  color: #888884;
  line-height: 1.4;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  background-color: #2d2d2b;
  color: #f4f3ef;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.cta-fade-block {
  position: absolute;
  bottom: -2%;
  right: -2%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.cta-fade-block span {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1.05;
  color: #6e7550;
}

.cta-fade-block span:nth-child(1) {
  opacity: 0.12;
}

.cta-fade-block span:nth-child(2) {
  opacity: 0.07;
}

.cta-fade-block span:nth-child(3) {
  opacity: 0.03;
}

.cta .section-label {
  color: #8a9160;
  margin-bottom: 0.75rem;
}

.cta-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: #f4f3ef;
  margin-bottom: 1rem;
}

.cta-body {
  font-size: 1.05rem;
  color: #a8a8a4;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.cta-linkedin {
  margin-top: 1.25rem;
}

.cta-linkedin-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: #8a9160;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #8a9160;
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}

.cta-linkedin-link:hover {
  color: #b0b886;
  border-color: #b0b886;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background-color: #2d2d2b;
  color: #888884;
  padding-block: 2.5rem;
  border-top: 1px solid #3d3d3a;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #6e7550;
}

.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-icon {
  color: #666662;
  transition: color 0.18s, transform 0.18s;
  display: flex;
  align-items: center;
}

.footer-icon:hover {
  color: #8a9160;
  transform: translateY(-2px);
}

.footer-geo {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555552;
}

.back-to-top {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #6e7550;
  transition: color 0.18s, transform 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.back-to-top:hover {
  color: #8a9160;
  transform: translateY(-2px);
}



/* ── Scroll animations ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .clients-inner {
    grid-template-columns: 1fr;
  }

  .clients-stat-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-item {
    border-bottom: none;
    border-right: 1px solid #d5d3cd;
    padding-right: 2rem;
    padding-bottom: 0;
  }

  .stat-item:last-child {
    border-right: none;
    padding-right: 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-aside {
    position: static;
  }

  .engagement-item {
    grid-template-columns: 1fr;
  }

  .engagement-tag {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .engagement-title {
    grid-column: 1;
    grid-row: 2;
  }

  .engagement-desc {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: #f4f3ef;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 0.5rem;
    border-bottom: 1px solid #dddbd5;
    box-shadow: 0 4px 16px rgba(45, 45, 43, 0.1);
  }

  .main-nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-quote-block {
    align-self: flex-start;
    margin-left: 0;
  }

  .hero-quote {
    text-align: left;
    border-right: none;
    border-left: 3px solid #6e7550;
    padding-right: 0;
    padding-left: 1.25rem;
  }

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

  .hero-content {
    padding-top: clamp(5rem, 18vw, 10rem);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Accessibility ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #6e7550;
  outline-offset: 3px;
  border-radius: 2px;
}