:root {
  --bg: #f2efe8;
  --bg-soft: #f9f6f2;
  --ink: #1f2e2f;
  --ink-soft: #4a5b5e;
  --line: #d6d0c6;
  --brand: #1f7d6c;
  --brand-dark: #0e5c4e;
  --highlight: #f0a34a;
  --surface: #ffffff;
  --shadow-lg: 0 20px 45px rgba(31, 46, 47, 0.13);
  --shadow-md: 0 10px 24px rgba(31, 46, 47, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #fbf7f0 0%, rgba(251, 247, 240, 0) 40%),
    radial-gradient(circle at 90% 20%, #e8f4f1 0%, rgba(232, 244, 241, 0) 34%),
    var(--bg);
}

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

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.section {
  padding: clamp(58px, 8vw, 110px) 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid rgba(31, 46, 47, 0.06);
  border-bottom: 1px solid rgba(31, 46, 47, 0.06);
}

.kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.77rem;
  font-weight: 800;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  color: #132021;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.35rem, 8vw, 5.2rem);
  line-height: 0.95;
}

h1 span {
  display: block;
  color: var(--brand-dark);
}

h2 {
  font-size: clamp(1.8rem, 4.1vw, 3rem);
  line-height: 1.07;
}

h3 {
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(242, 239, 232, 0.86);
  border-bottom: 1px solid rgba(31, 46, 47, 0.08);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.brand-logo-slot {
  display: inline-flex;
  align-items: center;
  width: 102px;
}

.brand-logo-slot img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-text {
  white-space: nowrap;
  color: var(--ink);
  letter-spacing: 0.09em;
}

.brand-degree {
  color: var(--brand);
  font-size: 0.58em;
  line-height: 0;
  vertical-align: super;
  position: relative;
  top: -0.18em;
}

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

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
}

.main-nav .nav-cta {
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.hero {
  padding-top: clamp(52px, 9vw, 118px);
}

.hero-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-text {
  max-width: 50ch;
}

.hero-wordmark {
  margin: 0 0 8px;
  color: var(--brand-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

.role-pills {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-pills li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(31, 125, 108, 0.12);
  border: 1px solid rgba(31, 125, 108, 0.2);
  color: var(--brand-dark);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease,
    background-color 0.25s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-media {
  position: relative;
}

.media-card {
  min-height: 410px;
  border-radius: 22px;
  border: 1px solid rgba(31, 46, 47, 0.12);
  background:
    linear-gradient(140deg, rgba(31, 125, 108, 0.18), rgba(240, 163, 74, 0.16)),
    #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
}

.media-card p {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.media-card small {
  color: var(--ink-soft);
}

.media-card code {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.media-card.has-image {
  padding: 0;
  overflow: hidden;
  display: block;
}

.media-card.has-image img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  object-position: center 62%;
}

.media-note {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--line);
}

.two-col,
.capability-grid,
.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.founder-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid rgba(31, 46, 47, 0.1);
  border-radius: 18px;
  padding: clamp(22px, 3.8vw, 34px);
  box-shadow: var(--shadow-md);
}

.cards-grid {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(31, 46, 47, 0.08);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.service-card p {
  margin-bottom: 0;
}

.portrait-placeholder {
  min-height: 520px;
  border-radius: 20px;
  border: 1px dashed #bdb5a6;
  background:
    linear-gradient(180deg, rgba(31, 125, 108, 0.18), rgba(242, 239, 232, 0.45)),
    #fbfaf7;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
}

.portrait-placeholder p {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

.portrait-placeholder.has-image {
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  border-color: rgba(31, 46, 47, 0.1);
  background: #efeae0;
}

.portrait-placeholder.has-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

.credential-list,
.plain-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.credential-list li,
.plain-list li {
  color: var(--ink-soft);
  line-height: 1.6;
}

.testimonial-grid {
  margin-top: 26px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-card {
  background: #fff;
  border: 1px solid rgba(31, 46, 47, 0.08);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-md);
}

.testimonial-card p {
  color: var(--ink);
  font-size: clamp(0.98rem, 1.5vw, 1.07rem);
  line-height: 1.82;
}

.testimonial-card h3 {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--brand-dark);
  font-family: "Manrope", sans-serif;
  font-size: 0.87rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-section {
  background:
    linear-gradient(150deg, rgba(31, 125, 108, 0.08), rgba(240, 163, 74, 0.08)),
    var(--bg-soft);
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(31, 46, 47, 0.1);
  border-radius: 18px;
  padding: clamp(22px, 3.6vw, 32px);
  box-shadow: var(--shadow-md);
}

.contact-card p {
  margin-bottom: 10px;
}

.contact-card a {
  color: var(--brand-dark);
}

.site-footer {
  border-top: 1px solid rgba(31, 46, 47, 0.1);
  background: #f7f4ee;
  padding: 20px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-wrap p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-wrap a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .founder-grid,
  .two-col,
  .capability-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portrait-placeholder {
    min-height: 380px;
  }

  .portrait-placeholder.has-image {
    max-width: 560px;
  }

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

@media (max-width: 760px) {
  .brand {
    gap: 8px;
  }

  .brand-logo-slot {
    width: 88px;
  }

  .brand-text {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .hero-wordmark {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 4vw;
    left: 4vw;
    background: #fff;
    border: 1px solid rgba(31, 46, 47, 0.08);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

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

  .main-nav .nav-cta {
    text-align: center;
  }

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

  .hero {
    padding-top: 32px;
  }

  .media-card {
    min-height: 280px;
  }

  .media-card.has-image img {
    min-height: 280px;
  }

  .role-pills {
    margin-bottom: 16px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
