:root {
  --ink: #18211f;
  --muted: #5e6c68;
  --paper: #f7f8f4;
  --line: #dfe5df;
  --green: #2fb36f;
  --green-deep: #0f6246;
  --charcoal: #101715;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(9, 18, 15, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(22px, 8vw, 132px);
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(12, 18, 16, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.brand-logo-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 0.9rem;
}

.nav-links a {
  opacity: 0.88;
}

.nav-links a:hover {
  opacity: 1;
  color: #8cf0b2;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 112px 24px 86px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(rgba(7, 12, 11, 0.42), rgba(7, 12, 11, 0.5)),
    url("./assets/hero-forest.jpg") center / cover;
}

.hero-shade,
.band-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 28, 24, 0.14), rgba(5, 9, 8, 0.62));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 800px;
  text-align: center;
}

.hero-logo-card {
  display: grid;
  width: min(230px, 54vw);
  aspect-ratio: 1 / 1.14;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.studio-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin: 22px 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  line-height: 1.05;
  font-weight: 800;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  color: #07100d;
  background: #86f0a8;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(47, 179, 111, 0.28);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(22px, 8vw, 132px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.16;
}

.section-heading p:not(.eyebrow),
.contact p {
  margin: 16px auto 0;
  color: var(--muted);
}

.skill-grid {
  display: grid;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 52px;
}

.skill-item span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.skill-track {
  height: 5px;
  overflow: hidden;
  background: #e5ebe6;
}

.skill-track span {
  height: 100%;
  margin: 0;
  background: linear-gradient(90deg, var(--green-deep), #36cfd1);
}

.hire-band {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 124px) clamp(22px, 8vw, 132px);
  color: var(--white);
  background:
    linear-gradient(rgba(8, 15, 13, 0.74), rgba(8, 15, 13, 0.76)),
    url("./assets/service-forest.jpg") center / cover fixed;
}

.hire-band > *:not(.band-shade) {
  position: relative;
  z-index: 1;
}

.section-heading.light h2,
.section-heading.light p:not(.eyebrow) {
  color: var(--white);
}

.section-heading.light p:not(.eyebrow) {
  opacity: 0.78;
}

.service-grid {
  display: grid;
  max-width: 1040px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  min-height: 260px;
  padding: 42px 32px;
  text-align: center;
  background: rgba(10, 22, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.service-card .icon {
  width: 42px;
  height: 42px;
  color: #5ee479;
}

.service-card h3 {
  margin: 22px 0 12px;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96rem;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.filter-button {
  min-width: 92px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #acb8b2;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.portfolio-grid {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  position: relative;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dce3dd;
  box-shadow: 0 18px 46px rgba(25, 37, 34, 0.14);
}

.work-card[hidden] {
  display: none;
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transition: transform 360ms ease;
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 72px 24px 22px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.work-card span {
  color: #8cf0b2;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  padding: clamp(54px, 8vw, 92px) clamp(22px, 8vw, 132px);
  color: var(--white);
  background: var(--charcoal);
}

.contact h2 {
  color: var(--white);
}

.contact p {
  max-width: 640px;
  margin-left: 0;
  color: rgba(255, 255, 255, 0.74);
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-actions a {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}

.contact-actions .icon {
  width: 19px;
  height: 19px;
  color: #86f0a8;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(22px, 8vw, 132px);
  color: rgba(255, 255, 255, 0.64);
  background: #0b100f;
  font-size: 0.9rem;
}

@media (max-width: 850px) {
  .site-header {
    padding: 18px 22px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 22px;
    display: none;
    min-width: 190px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(10, 16, 14, 0.94);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 10px 12px;
  }

  .hero {
    min-height: 90vh;
    padding-bottom: 58px;
  }

  .skill-grid,
  .service-grid,
  .portfolio-grid,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .contact-actions a {
    white-space: normal;
  }

  footer {
    flex-direction: column;
  }
}
