:root {
  color-scheme: light;
  --bg: #f5f6f4;
  --surface: #ffffff;
  --ink: #202326;
  --muted: #5b666d;
  --line: #d8ddd7;
  --accent: #20745e;
  --accent-dark: #164d3f;
  --gold: #a66a24;
  --blue: #285c92;
  --shadow: 0 24px 70px rgba(31, 37, 40, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: rgba(15, 122, 112, 0.38);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(246, 244, 238, 0.9);
  border-bottom: 1px solid rgba(216, 212, 200, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - 74px);
  padding: clamp(58px, 9vw, 108px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 86px);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(14, 28, 25, 0.9), rgba(14, 28, 25, 0.66) 43%, rgba(14, 28, 25, 0.18) 100%),
    linear-gradient(0deg, rgba(14, 28, 25, 0.5), rgba(14, 28, 25, 0.05) 50%),
    url("/assets/hero-workspace.png");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-top: 12svh;
}

.hero .eyebrow {
  color: #9edbd3;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.84);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.button--light {
  border-color: rgba(32, 116, 94, 0.3);
  background: #ffffff;
  color: var(--accent-dark);
}

.button--light:hover {
  border-color: var(--accent-dark);
  background: rgba(32, 116, 94, 0.08);
  color: var(--accent-dark);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.band,
.content-split,
.page,
.article {
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-action {
  margin: 28px 0 0;
}

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

.result-grid,
.quote-grid,
.review-gallery {
  display: grid;
  gap: 16px;
}

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

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

.review-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.case-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.topic,
.article-card,
.service,
.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.topic,
.result-card {
  padding: 22px;
}

.result-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.08;
}

.stat {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
}

.topic p,
.service p,
.result-card p,
.article-card p,
.text-block p,
.rich-list p,
.article p {
  color: var(--muted);
}

blockquote {
  margin: 0;
  padding: 22px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 800;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
}

details p {
  margin: 0;
  padding: 16px 20px 0;
  color: var(--muted);
}

details p:last-child {
  padding-bottom: 18px;
}

.review-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.review-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.review-gallery figcaption {
  padding: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 86px);
}

.expert-intro {
  align-items: center;
}

.expert-profile {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 54px);
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.expert-photo {
  margin: 0;
}

.expert-photo img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.expert-photo figcaption {
  max-width: 320px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.rich-list {
  display: grid;
  gap: 14px;
}

.rich-list p {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
}

.page h1,
.article h1 {
  max-width: 920px;
}

.text-block {
  max-width: 820px;
  margin: 44px 0;
}

.topic-grid--compact {
  margin-top: 30px;
}

.service-list,
.article-list {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.service {
  padding: 24px;
}

.service h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.tags {
  margin-bottom: 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.article-card {
  padding: 22px;
}

.learning-cta {
  margin-top: 42px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(32, 116, 94, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 116, 94, 0.09), rgba(166, 106, 36, 0.08));
}

.learning-cta h2 {
  max-width: 760px;
}

.learning-cta p {
  max-width: 860px;
}

.learning-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.article-card time,
.article-meta {
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
}

.article-card h2 {
  margin-top: 6px;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
}

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article h1 {
  font-size: clamp(2.15rem, 5vw, 4.35rem);
}

.article h2 {
  margin-top: 38px;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

.article code {
  padding: 0.12em 0.28em;
  border-radius: 4px;
  background: rgba(15, 122, 112, 0.1);
}

.video-embed {
  position: relative;
  overflow: hidden;
  margin: 34px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.related,
.route {
  margin-top: 42px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.related h2,
.route h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.related ul,
.route ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.related li,
.route li {
  margin: 0.45rem 0;
}

.route-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .content-split {
    grid-template-columns: 1fr;
  }

  .expert-profile {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero {
    background-position: 62% center;
  }

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

  .result-grid,
  .quote-grid,
  .review-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 14px;
    padding: 16px 20px;
  }

  .brand {
    font-size: 1.18rem;
  }

  .nav {
    gap: 9px 14px;
    font-size: 0.94rem;
    line-height: 1.25;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.04;
  }

  .hero {
    padding: 48px 20px 50px;
    background-image:
      linear-gradient(90deg, rgba(14, 28, 25, 0.94), rgba(14, 28, 25, 0.76) 64%, rgba(14, 28, 25, 0.3) 100%),
      linear-gradient(0deg, rgba(14, 28, 25, 0.55), rgba(14, 28, 25, 0.08) 50%),
      url("/assets/hero-workspace.png");
  }

  .hero__content {
    max-width: 100%;
    padding-top: 2svh;
  }

  .hero .eyebrow {
    max-width: 100%;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .hero .lead {
    font-size: 1.03rem;
    line-height: 1.5;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 26px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .expert-profile {
    padding: 20px;
  }

  .expert-photo img,
  .expert-photo figcaption {
    max-width: 100%;
  }
}
