:root {
  --cream: #faf9f7;
  --paper: #ffffff;
  --ink: #201f1d;
  --muted: #5f5c57;
  --line: #ece6de;
  --orange: #c99a24;
  --gold: #d9b638;
  --teal: #20a39e;
  --shadow: 0 20px 45px rgba(44, 38, 33, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--cream) 62%, #fff8ef 100%);
  color: var(--ink);
  font-family: Avenir, "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

.site-nav {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(32, 163, 158, 0.14);
  display: flex;
  inset: 0 0 auto;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 6vw;
  position: fixed;
  z-index: 50;
}

.brand {
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 900;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  position: relative;
}

.nav-links a::after {
  background: linear-gradient(90deg, var(--teal), #0f7778);
  bottom: -0.35rem;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: width 0.25s ease;
  width: 0;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.menu-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  display: none;
  height: 44px;
  place-items: center;
  width: 44px;
}

.page {
  display: none;
  min-height: 100vh;
  padding-top: 76px;
}

.page.active {
  display: block;
}

.section {
  padding: 5rem 6vw;
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.section.narrow .section-inner {
  max-width: 860px;
}

.hero {
  background:
    radial-gradient(circle at 16% 14%, rgba(201, 154, 36, 0.07), transparent 24rem),
    radial-gradient(circle at 86% 74%, rgba(32, 163, 158, 0.08), transparent 24rem),
    linear-gradient(135deg, #ffffff 0%, #fffdf9 58%, var(--cream) 100%);
  min-height: 100vh;
  overflow: hidden;
  padding: 8rem 6vw 5rem;
  position: relative;
}

.hero::before,
.hero::after {
  border-radius: 999px;
  content: "";
  filter: blur(90px);
  opacity: 0.1;
  position: absolute;
}

.hero::before {
  background: var(--orange);
  height: 24rem;
  left: 8vw;
  top: 2rem;
  width: 24rem;
}

.hero::after {
  background: var(--teal);
  bottom: 8vh;
  height: 22rem;
  right: 8vw;
  width: 22rem;
}

.hero-content {
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  max-width: 980px;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 900;
}

h3 {
  font-size: 1.35rem;
  font-weight: 850;
}

.hero-specialties {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
  margin: 1.4rem 0 0;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 1.6rem 0 0;
  max-width: 690px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), #0f7778);
  color: white;
}

.button.secondary {
  background: linear-gradient(135deg, var(--teal), #0f7778);
  color: white;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 12px 24px rgba(32, 163, 158, 0.24);
  transform: translateY(-3px);
}

.white {
  background: var(--paper);
}

.tint {
  background: linear-gradient(135deg, #ffffff 0%, rgba(32, 163, 158, 0.055) 58%, var(--cream) 100%);
}

.section-heading {
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(32, 163, 158, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.icon-box,
.number-box {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 1.4rem;
  width: 48px;
}

.icon-box {
  background: rgba(32, 163, 158, 0.14);
  color: var(--teal);
}

.number-box {
  background: linear-gradient(135deg, var(--teal), #0f7778);
  color: white;
  font-weight: 900;
}

.card p,
.article p,
.case-body p,
.case-body li {
  color: var(--muted);
  line-height: 1.72;
}

.case-subtitle,
.article-date {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin: 0.9rem 0 1rem;
  text-transform: uppercase;
}

.text-link {
  align-items: center;
  color: var(--teal);
  display: inline-flex;
  font-weight: 850;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.about-band {
  background: linear-gradient(135deg, #ffffff 0%, var(--cream) 68%, rgba(32, 163, 158, 0.06) 100%);
  color: var(--ink);
}

.about-band .lead,
.about-band p {
  color: var(--muted);
}

.about-band .eyebrow {
  color: var(--teal);
}

.about-hero {
  background:
    radial-gradient(circle at 16% 14%, rgba(201, 154, 36, 0.06), transparent 23rem),
    radial-gradient(circle at 86% 72%, rgba(32, 163, 158, 0.08), transparent 23rem),
    linear-gradient(135deg, #ffffff 0%, #fffdf9 62%, var(--cream) 100%);
  overflow: hidden;
  padding: 9rem 6vw 5.5rem;
  position: relative;
}

.about-hero::before,
.about-hero::after {
  border-radius: 999px;
  content: "";
  filter: blur(90px);
  opacity: 0.1;
  position: absolute;
}

.about-hero::before {
  background: var(--orange);
  height: 20rem;
  left: 6vw;
  top: 3rem;
  width: 20rem;
}

.about-hero::after {
  background: var(--teal);
  bottom: 2rem;
  height: 20rem;
  right: 5vw;
  width: 20rem;
}

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

.about-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.about-hero-copy {
  max-width: 850px;
}

.about-statement {
  color: var(--ink);
  font-size: clamp(2.1rem, 4.6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.06;
  margin: 0;
  max-width: 1030px;
}

.about-hero .lead {
  max-width: 820px;
}

.about-portrait {
  align-self: end;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(32, 163, 158, 0.12));
  border: 1px solid rgba(32, 163, 158, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1rem 1rem 0;
}

.about-portrait img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center bottom;
  width: min(100%, 430px);
}

.about-copy-block {
  max-width: 760px;
}

.about-copy-block h2 {
  margin-bottom: 1rem;
}

.about-copy-block p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0;
}

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

.expertise-card h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

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

.tool-group h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.tool-group .tag {
  align-items: center;
  background: rgba(32, 163, 158, 0.08);
  color: var(--ink);
  justify-content: flex-start;
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  width: 100%;
}

.tool-group .tag-list {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
  margin-top: 0;
}

.education-card {
  border-top: 4px solid var(--teal);
}

.education-card h3 {
  line-height: 1.2;
}

.education-card h3 span {
  color: var(--teal);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  margin-left: 0.35rem;
  text-transform: uppercase;
}

.education-card .school {
  color: var(--teal);
  font-weight: 850;
  margin-bottom: 0;
}

.about-actions {
  margin-top: 2rem;
}

.quote-card .stars {
  color: var(--gold);
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.quote-card .stars svg {
  fill: currentColor;
}

.testimonials-preview {
  align-items: stretch;
}

.more-testimonials {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.testimonials-page {
  min-height: 100vh;
}

.quote {
  font-size: 1rem;
  font-style: italic;
}

.author {
  color: var(--ink);
  font-weight: 850;
  margin: 1.25rem 0 0.1rem;
}

.title {
  color: #8a857e;
  font-size: 0.85rem;
  margin: 0;
}

.contact-panel {
  background: var(--paper);
  border: 3px solid var(--teal);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
}

.contact-panel .lead {
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 6vw;
}

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

.footer-inner p {
  color: #8a857e;
  font-size: 0.9rem;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #8a857e;
}

.case-header {
  margin-bottom: 3rem;
}

.case-body section {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.highlight {
  border-left: 4px solid var(--teal);
  margin: 1rem 0;
  padding-left: 1rem;
}

.highlight strong {
  background: rgba(32, 163, 158, 0.13);
  border-radius: 8px;
  color: #13716e;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 750;
  margin: 0.1rem 0.35rem 0.1rem 0;
  padding: 0.35rem 0.65rem;
}

.highlight:has(strong) {
  border-left: 0;
  padding-left: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(32, 163, 158, 0.13);
  border-radius: 8px;
  color: #13716e;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 750;
  padding: 0.55rem 0.8rem;
}

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

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

@media (max-width: 820px) {
  .site-nav {
    padding: 0 1.2rem;
  }

  .menu-button {
    display: grid;
  }

  .nav-links {
    background: rgba(250, 249, 247, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 1rem;
    left: 0;
    padding: 1.25rem;
    position: absolute;
    right: 0;
    top: 76px;
  }

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

  .hero,
  .section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero::before,
  .hero::after {
    filter: blur(70px);
    height: 18rem;
    width: 18rem;
  }

  .hero::before {
    left: -5rem;
  }

  .hero::after {
    right: -6rem;
  }

  .about-hero {
    padding: 7.5rem 1.25rem 4rem;
  }

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

  .about-hero::before,
  .about-hero::after {
    filter: blur(70px);
    height: 18rem;
    width: 18rem;
  }

  .about-hero::before {
    left: -6rem;
  }

  .about-hero::after {
    right: -7rem;
  }

  .about-portrait {
    justify-self: center;
    max-width: 360px;
    width: 100%;
  }

  .two,
  .three,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.35rem;
  }

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