:root {
  --ink: #111317;
  --ink-soft: #3a4148;
  --muted: #717b85;
  --line: #e4e8ec;
  --paper: #ffffff;
  --wash: #f6f8f8;
  --mist: #edf4f1;
  --accent: #287568;
  --accent-dark: #1e5b50;
  --sun: #d99b57;
  --footer: #101419;
  --shadow: 0 28px 70px rgba(17, 19, 23, 0.14);
  --soft-shadow: 0 16px 44px rgba(17, 19, 23, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

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

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

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: rgba(40, 117, 104, 0.14);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(40, 117, 104, 0.28);
  outline-offset: 3px;
}

p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: 3.55rem;
}

h2 {
  font-size: 2.45rem;
}

h3 {
  font-size: 1.7rem;
}

h4 {
  font-size: 1.2rem;
}

ul,
ol {
  margin: 0 0 1.25rem 1.15rem;
  padding: 0;
  color: var(--ink-soft);
}

li + li {
  margin-top: 0.55rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 232, 236, 0.78);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand img {
  width: auto;
  height: 58px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-links a[href="/contact/"] {
  display: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.button,
.button-small,
.submit-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.82rem 1.18rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--paper);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button-small:hover,
.submit-button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  color: var(--paper);
  box-shadow: 0 14px 28px rgba(40, 117, 104, 0.24);
}

.button.dark {
  border-color: var(--ink);
  background: var(--ink);
}

.button.dark:hover {
  background: #000000;
}

.button-small {
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
}

.nav-cta {
  padding-right: 1.05rem;
  padding-left: 1.05rem;
}

.nav-cta[aria-current="page"] {
  background: var(--accent-dark);
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--wash);
}

.content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(880px, calc(100% - 48px));
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 62ch;
  font-size: 1.14rem;
  line-height: 1.8;
}

.center {
  text-align: center;
}

.center p {
  margin-right: auto;
  margin-left: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 58px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
}

.hero {
  padding: 72px 0 92px;
}

.hero .split {
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.image-frame,
.article-hero-image,
.blog-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
  box-shadow: var(--shadow);
}

.image-frame::after,
.article-hero-image::after,
.blog-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.image-frame img,
.article-hero-image img,
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame.tall {
  aspect-ratio: 4 / 5;
}

.image-frame.wide,
.article-hero-image {
  aspect-ratio: 16 / 10;
}

.image-pair {
  display: grid;
  gap: 22px;
}

.video-link {
  position: relative;
  display: block;
}

.play-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.play-badge img {
  width: 18px;
  height: 18px;
}

.service-grid,
.blog-grid,
.testimonial-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.service-card,
.blog-card,
.testimonial,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(17, 19, 23, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.blog-card:hover,
.testimonial:hover,
.info-card:hover {
  border-color: rgba(40, 117, 104, 0.22);
  box-shadow: 0 18px 44px rgba(17, 19, 23, 0.08);
  transform: translateY(-2px);
}

.service-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--mist);
}

.service-icon img {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.22rem;
}

.service-card p {
  flex: 1;
}

.sticky-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 118px;
}

.blog-card {
  overflow: hidden;
}

.blog-card a {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.blog-image {
  aspect-ratio: 1 / 0.78;
  border-radius: 0;
  box-shadow: none;
}

.blog-card-body {
  padding: 22px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.meta span:first-child {
  color: var(--accent);
}

.blog-card h3 {
  font-size: 1.02rem;
  line-height: 1.25;
}

.testimonial {
  padding: 28px;
}

.client {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.client img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.client strong {
  display: block;
}

.client span {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 78px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, var(--wash) 100%);
}

.page-hero .content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.page-hero.simple .content {
  display: block;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 60px;
  align-items: start;
}

.article-body {
  max-width: 760px;
}

.article-body p,
.article-body li {
  font-size: 1.02rem;
}

.article-body h2 {
  margin-top: 2.2rem;
  font-size: 2rem;
}

.article-body h3 {
  margin-top: 1.8rem;
}

.article-body img {
  width: 100%;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.proposal-panel {
  position: sticky;
  top: 118px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.proposal-panel h2,
.proposal-panel h3,
.proposal-panel p {
  color: var(--paper);
}

.proposal-panel p {
  opacity: 0.82;
}

.proposal-panel .form {
  grid-template-columns: 1fr;
}

.proposal-panel .form .full {
  grid-column: auto;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form .full {
  grid-column: 1 / -1;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field:focus {
  border-color: rgba(40, 117, 104, 0.6);
  box-shadow: 0 0 0 4px rgba(40, 117, 104, 0.1);
  outline: none;
}

textarea.field {
  min-height: 142px;
  padding-top: 14px;
  resize: vertical;
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--accent-dark);
  font-weight: 700;
}

.form-status.visible {
  display: block;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.info-card {
  padding: 28px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-weight: 800;
}

.contact-link img {
  width: 22px;
  height: 22px;
}

.site-footer {
  padding: 70px 0 32px;
  background: var(--footer);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 260px;
  gap: 44px;
  align-items: start;
}

.footer-logo {
  width: 146px;
  margin-bottom: 22px;
}

.site-footer h3,
.site-footer h4 {
  color: var(--paper);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  display: block;
  margin: 0 0 10px;
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .split,
  .split.reverse,
  .hero .split,
  .page-hero .content,
  .article-layout,
  .contact-grid,
  .sticky-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .sticky-copy,
  .proposal-panel {
    position: static;
  }

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

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

  .article-body {
    max-width: none;
  }

  .proposal-panel {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.28rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .nav-shell,
  .content,
  .narrow {
    width: min(100% - 32px, 1180px);
  }

  .nav-shell {
    min-height: 72px;
  }

  .brand img {
    height: 48px;
  }

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

  .nav-area {
    gap: 12px;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--soft-shadow);
    z-index: 30;
  }

  .nav-links.is-open {
    display: grid;
    gap: 14px;
  }

  .nav-links a {
    display: block;
    padding: 10px 2px;
  }

  .nav-links a[href="/contact/"] {
    display: block;
  }

  .nav-links a::after {
    bottom: 4px;
    transform-origin: left;
  }

  .nav-cta {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  .hero,
  .page-hero {
    padding: 46px 0 62px;
  }

  .hero-actions,
  .button-row {
    margin-top: 22px;
  }

  .service-grid,
  .blog-grid,
  .testimonial-grid,
  .form {
    grid-template-columns: 1fr;
  }

  .form .full {
    grid-column: auto;
  }

  .service-card {
    min-height: auto;
  }

  .client {
    align-items: flex-start;
  }

  .footer-bottom {
    margin-top: 30px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 1.92rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  h3 {
    font-size: 1.26rem;
  }

  .nav-shell,
  .content,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    height: 42px;
  }

  .button,
  .button-small,
  .submit-button {
    width: 100%;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-actions,
  .button-row {
    display: grid;
  }

  .image-pair {
    gap: 16px;
  }

  .image-frame.tall,
  .image-frame.wide,
  .article-hero-image {
    aspect-ratio: 4 / 3;
  }

  .service-card,
  .testimonial,
  .info-card,
  .proposal-panel {
    padding: 22px;
  }

  .blog-card-body {
    padding: 18px;
  }

  .article-body h2 {
    font-size: 1.45rem;
  }
}
