:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9dee7;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --teal: #0f766e;
  --coral: #ef6f61;
  --gold: #d99a22;
  --green: #4d8f5c;
  --blue: #2f5f98;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(217, 222, 231, 0.82);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 13px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: #ece9df;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  min-height: calc(100vh - 75px);
  padding: clamp(44px, 8vw, 96px) clamp(20px, 5vw, 64px) 48px;
  background:
    linear-gradient(115deg, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(300deg, rgba(239, 111, 97, 0.12), transparent 38%);
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.contact-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

.button:hover,
.filter:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 0;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-stats dt {
  font-size: 1.55rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.hero-media {
  position: relative;
}

.hero-copy,
.hero-media,
.section-heading,
.contact-copy {
  min-width: 0;
}

.hero-media img {
  width: min(100%, 650px);
  margin-inline: auto;
  filter: drop-shadow(0 30px 42px rgba(17, 24, 39, 0.18));
}

.section {
  padding: clamp(70px, 11vw, 128px) clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

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

.service-card,
.work-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 42px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.service-card:nth-child(2) .service-icon {
  background: var(--teal);
}

.service-card:nth-child(3) .service-icon {
  background: var(--coral);
}

.service-card:nth-child(4) .service-icon {
  background: var(--green);
}

.service-card:nth-child(5) .service-icon {
  background: var(--gold);
}

.service-card:nth-child(6) .service-icon {
  background: #7c3aed;
}

.service-card:nth-child(7) .service-icon {
  background: #c2410c;
}

.service-card p,
.work-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.6;
}

.filter-bar {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.is-active {
  color: #ffffff;
  background: var(--ink);
}

.work-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.work-card.is-hidden {
  display: none;
}

.work-swatch {
  position: relative;
  overflow: hidden;
  height: 98px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.09);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 22%, transparent 22% 100%),
    var(--coral);
}

.service-slider {
  background: #f8e1de;
}

.service-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(70%);
  animation: serviceSlide 6s infinite;
}

.service-slider img:nth-child(2) {
  animation-delay: 2s;
}

.service-slider img:nth-child(3) {
  animation-delay: 4s;
}

@keyframes serviceSlide {
  0% {
    opacity: 0;
    transform: translateX(70%);
  }

  10%,
  30% {
    opacity: 1;
    transform: translateX(0);
  }

  40%,
  100% {
    opacity: 0;
    transform: translateX(-70%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-slider img {
    animation: none;
  }

  .service-slider img:first-child {
    opacity: 1;
    transform: none;
  }
}

.swatch-teal {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 16%, transparent 16% 100%),
    var(--teal);
}

.swatch-gold {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 28%, transparent 28% 100%),
    var(--gold);
}

.swatch-green {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 19%, transparent 19% 100%),
    var(--green);
}

.swatch-blue {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 24%, transparent 24% 100%),
    var(--blue);
}

.swatch-violet {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 18%, transparent 18% 100%),
    #7c3aed;
}

.swatch-red {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 30%, transparent 30% 100%),
    #c2410c;
}

.work-card span {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.process {
  background: #edf4f1;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.timeline li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 58px;
  color: var(--teal);
  font-weight: 900;
}

.timeline span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 900;
}

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

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

.team-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.team-card:nth-child(2) .team-avatar {
  background: var(--teal);
}

.team-card:nth-child(3) .team-avatar {
  background: var(--coral);
}

.team-card:nth-child(4) .team-avatar {
  background: var(--gold);
}

.team-card p {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-card h3 {
  margin-bottom: 0;
}

.team-card span {
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(70px, 11vw, 128px) clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: #ffffff;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: start;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100vh - 75px);
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(115deg, rgba(15, 118, 110, 0.12), transparent 36%),
    linear-gradient(300deg, rgba(239, 111, 97, 0.12), transparent 42%),
    var(--ink);
  color: #ffffff;
}

.contact .eyebrow {
  color: #83d0c7;
}

.contact-page .eyebrow {
  color: #83d0c7;
}

.contact-copy p {
  color: #c9d0da;
}

.contact-page h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.contact-details {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #c9d0da;
  line-height: 1.6;
}

.contact-detail-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #ffffff;
  font-weight: 900;
}

.contact-detail-item span:last-child {
  overflow-wrap: anywhere;
}

.contact-details a {
  font-size: 1.2rem;
}

.contact-details address {
  font-style: normal;
}

.detail-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #83d0c7;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}

.map-embed {
  width: min(100%, 680px);
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #e9edf3;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #aab4c2;
}

select option {
  color: var(--ink);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: #9ee4d9;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--muted);
  background: #ffffff;
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-email::before {
  content: "✉";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  background: #ffffff;
  font-size: 0.9rem;
}

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

  .hero {
    min-height: auto;
  }

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

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 75px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.2;
  }

  .contact-page h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .eyebrow {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-stats,
  .service-grid,
  .work-grid,
  .team-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-stats div,
  .service-card,
  .work-card,
  .team-card,
  .timeline li {
    min-height: auto;
  }

  .filter-bar,
  .site-footer {
    width: 100%;
  }

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

  .hero-actions .button {
    min-width: 0;
    padding-inline: 10px;
  }

  .filter {
    flex: 1;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    flex-direction: column;
  }
}
