:root {
  --bg: #f4efe7;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: #fff9f2;
  --surface-dark: #1f2d2d;
  --text: #18211f;
  --muted: #51615a;
  --line: rgba(24, 33, 31, 0.1);
  --brand: #6baddb;
  --brand-deep: #316a92;
  --accent: #d98f43;
  --shadow: 0 24px 80px rgba(28, 35, 33, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1140px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Verdana", sans-serif;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--brand) 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header-solid {
  border-bottom-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--brand);
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  margin-top: 0.25rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: bold;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-cta {
  min-height: 2.8rem;
  padding: 0 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--text);
}

.hero-section,
.page-hero,
.article-shell {
  padding: 2rem 0 2rem;
}

.hero-grid,
.page-hero-grid,
.contact-grid,
.expertise-grid,
.article-layout {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.hero-copy img {
  display: block;
  margin: 0 0 1rem;
  width: 300px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  border-radius: 2rem;
}

.hero-copy h1,
.page-hero h1,
.contact-copy h2,
.section-heading h2,
.article-content h1,
.article-content h2,
.article-content h3 {
  font-family: "Verdana", serif;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: 3.5rem;
  line-height: 1.1;
}

.hero-lead,
.contact-copy p,
.page-hero-panel p,
.service-card p,
.principle-card p,
.case-card p,
.article-content p,
.article-content li,
.post-card p {
  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.button {
  min-height: 3.35rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
}

.button:hover,
.nav-cta:hover,
.pagination button:hover,
.chip:hover,
.post-link:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 16px 40px rgba(12, 138, 106, 0.24);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-strong);
}

.hero-panel,
.contact-card,
.page-hero-panel,
.article-content,
.article-aside {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-panel,
.page-hero-panel,
.contact-card,
.article-content,
.article-aside {
  padding: 1.5rem;
}

.stat-card,
.service-card,
.principle-card,
.case-card,
.post-card,
.chip,
.results-bar,
.search-field input,
.pagination button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.stat-card {
  padding: 1.25rem;
}

.stat-card span,
.post-meta,
.article-meta,
.article-aside strong {
  display: block;
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-card strong,
.service-card h3,
.principle-card h3,
.case-card h3,
.post-card h3,
.article-aside h3,
.article-content h1 {
  display: block;
  margin: 0.55rem 0 0.65rem;
  font-size: 1.2rem;
}

.stat-grid,
.service-grid,
.principles-grid,
.case-grid,
.post-preview-grid,
.blog-grid {
  display: grid;
  gap: 1rem;
}

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

.section {
  padding: 2rem 0 2rem;
}

.section-tight {
  padding-top: 1rem;
}

.section-accent {
  position: relative;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 2.5rem);
  line-height: 1.2;
}

.section-heading-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.service-grid,
.case-grid,
.post-preview-grid,
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.service-card,
.principle-card,
.case-card,
.post-card {
  padding: 1.2rem;
}

.service-card,
.principle-card,
.case-card,
.post-card,
.article-content,
.article-aside,
.contact-card,
.hero-panel {
  overflow: hidden;
}

.text-link {
  color: var(--brand-deep);
  font-weight: 700;
}

.contact-grid,
.page-hero-grid,
.article-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: start;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-card dt {
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.blog-controls {
  display: grid;
  gap: 1rem;
}

.search-field {
  display: grid;
  gap: 0.6rem;
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0 1rem;
  color: var(--text);
}

.category-filter,
.related-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip,
.pagination button {
  min-height: 2.8rem;
  padding: 0 1rem;
  color: var(--muted);
  cursor: pointer;
}

.chip.active,
.pagination button.active {
  background: var(--surface-dark);
  color: #fff;
  border-color: transparent;
}

.results-bar {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
}

.results-bar p,
.loading-copy,
.empty-state {
  margin: 0;
  color: var(--muted);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.post-card h3 {
  font-family: "Verdana", serif;
  font-size: 1.2rem;
}

.post-card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 1rem;
}

.post-card-footer,
.article-footer-nav,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.post-link,
.back-link {
  color: var(--brand-deep);
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.article-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr;
}

.article-content h1 {
  margin-top: 0;
  font-size: clamp(1.25rem, 2.5vw, 2.2rem);
  line-height: 1;
}

.article-content section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.article-content ul {
  padding-left: 1.2rem;
}

.article-content img {
  max-width: 900px;
  width: 100%;
  max-height: 500px;
  margin: 1.5rem auto;
  display: block;
  height: auto;
  object-fit: contain;
}

.article-aside {
  position: static;
}

.article-aside h3 {
  margin-top: 0;
  font-family: "Verdana", serif;
}

.related-posts {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.related-posts a {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-wrap {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 220ms;
}

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

@media (max-width: 960px) {
  .hero-grid,
  .page-hero-grid,
  .contact-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .case-grid,
  .post-preview-grid,
  .blog-grid,
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading-inline,
  .footer-wrap,
  .post-card-footer,
  .article-footer-nav {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 1.5rem;
    background: rgba(255, 249, 242, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .service-grid,
  .case-grid,
  .post-preview-grid,
  .blog-grid,
  .principles-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .page-hero,
  .article-shell {
    padding-top: 2rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .article-content h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
    line-height: 1.2;
  }

}

/* About page specifics */
.about-hero .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.skills-list {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}
