:root {
  --bg: #f6f3ed;
  --surface: #fffdfa;
  --surface-2: #f4efe8;
  --text: #141414;
  --muted: #5d5d5d;
  --line: #d9d3c8;
  --accent: #0e8c77;
  --accent-2: #125447;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(15, 13, 10, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  position: relative;
}

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

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

.container {
  width: min(1120px, calc(100% - 2.6rem));
  margin-inline: auto;
}

.section {
  padding: 4.8rem 0;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(246, 243, 237, 0.88);
  border-bottom: 1px solid rgba(217, 211, 200, 0.75);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 30;
}

.menu-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open .menu-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.open .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .menu-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.35rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: var(--accent);
}

.hero {
  padding-top: 6rem;
}

.hero-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--accent-2);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6.2vw, 4.5rem);
  margin-bottom: 1.1rem;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  max-width: 16ch;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 0.65rem;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.18);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.quick-links a {
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.quick-links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-card-content {
  padding: 1.1rem 1.1rem 1.3rem;
}

.hero-card-title {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-2);
  font-weight: 700;
}

.hero-card-content p:last-child {
  margin: 0;
  color: var(--muted);
}

.stat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.stat-number {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.stat-label {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-strip {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.brand-strip-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1.35rem;
  color: var(--accent-2);
  font-weight: 600;
  flex: 1 1 420px;
}

.brand-strip-logos {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  background: transparent;
  border: 1px solid rgba(18, 84, 71, 0.2);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 4px 10px rgba(17, 17, 17, 0.06);
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.split {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 0.95fr 1.05fr;
}

.about-copy {
  color: var(--muted);
}

.about-copy p {
  margin: 0 0 1rem;
}

.section-head {
  margin-bottom: 1.4rem;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

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

.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.case-tag {
  margin: 0 0 0.4rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
}

.case-card p {
  color: var(--muted);
}

.metric-list {
  margin: 0.8rem 0;
  padding-left: 1rem;
  color: var(--muted);
}

.metric-list li + li {
  margin-top: 0.34rem;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-links a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-2);
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(18, 84, 71, 0.22);
  border-radius: 999px;
}

.case-links a:hover {
  background: rgba(14, 140, 119, 0.08);
}

.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item:nth-child(1) {
  grid-column: span 12;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(4) {
  grid-column: span 4;
}

.skill-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-cloud li {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
}

.contact-card {
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #fffdfa, #f0eee8);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-card p {
  color: var(--muted);
  max-width: 60ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(45px);
  pointer-events: none;
  opacity: 0.35;
  z-index: -2;
}

.orb-one {
  top: -130px;
  left: -120px;
  background: #8dd5c6;
}

.orb-two {
  bottom: -160px;
  right: -110px;
  background: #f4b185;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.32), transparent 72%);
  pointer-events: none;
  z-index: -3;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

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

@media (max-width: 860px) {
  .site-header {
    backdrop-filter: none;
    background: var(--bg);
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 25;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

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

  .site-nav .nav-link {
    font-size: 1.4rem;
    padding: 0.6rem 0;
    border-bottom: none;
  }

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

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

  .brand-strip-logos {
    margin-left: 0;
    justify-content: flex-start;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4) {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.2rem 0;
  }

  .nav-wrap {
    min-height: 60px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(1.75rem, 7vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-card img {
    height: 280px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

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

  .skill-cloud {
    gap: 0.45rem;
  }

  .skill-cloud li {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .gallery-item img {
    transition: none;
  }
}