:root {
  --teal: #062828;
  --lime: #92c84c;
  --green: #0fb37d;
  --paper: #f0fdf4;
  font-family: "DM Sans", Inter, sans-serif;
  color: var(--teal);
  background: white;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 12px;
  border-radius: 26px;
  color: white;
  background:
    radial-gradient(ellipse at 50% 92%, #0fb37d 0%, transparent 58%),
    radial-gradient(ellipse at 100% 78%, #44b149 0%, transparent 45%),
    var(--teal);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 52px, #ffffff18 53px 54px, transparent 55px 83px);
  mask-image: linear-gradient(transparent 28%, black);
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  max-width: 1340px;
  padding: 20px clamp(16px, 4vw, 52px);
}
.masthead a { text-decoration: none; transition: color 200ms; }
.masthead a:hover { color: var(--lime); }
.brand { font-size: 1.3rem; font-weight: 800; }
.brand::before { content: "◆"; color: var(--lime); margin-right: .55rem; }
.intro {
  width: min(940px, 100% - 32px);
  margin: auto;
  padding-top: clamp(24px, 4vw, 58px);
  text-align: center;
  animation: arrive 800ms both;
}
.rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid #ffffff40;
  border-radius: 24px;
  background: #ffffff0d;
  padding: 5px 12px;
  font-size: .78rem;
}
.rating img { border-radius: 50%; object-fit: cover; }
.stars, h1 span { color: var(--lime); }
h1 {
  margin: 20px auto 14px;
  font-size: clamp(2.3rem, 5.5vw, 5.25rem);
  line-height: .99;
  font-weight: 700;
  letter-spacing: -.068em;
  text-wrap: balance;
}
.intro p { max-width: 660px; margin: 18px auto; color: #f0fdf4; line-height: 1.6; }
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; list-style: none; }
.features li {
  border: 1px solid #ffffff40;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: .84rem;
  transition: transform 250ms, background-color 250ms;
}
.features li:hover { transform: translateY(-4px); background: #ffffff25; }
.button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 7px 8px 7px 17px;
  margin-top: 8px;
  background: var(--lime);
  color: var(--teal);
  font-weight: 800;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 250ms, box-shadow 250ms;
}
.button span { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 50%; background: var(--teal); color: white; }
.button:hover { transform: translateY(-4px); box-shadow: 0 8px 24px #06282880; }
.gallery {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 18px);
  height: clamp(214px, 26vw, 360px);
  padding-top: clamp(26px, 4vw, 58px);
  perspective: 750px;
}
.gallery-card {
  flex: 0 0 clamp(122px, 15vw, 226px);
  aspect-ratio: 1.08;
  margin-top: var(--drop);
  transform: rotateY(var(--yaw)) rotateZ(var(--roll));
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
}
.gallery-card:hover { transform: translateY(-12px) rotateY(0) rotateZ(0) scale(1.08); z-index: 1; }
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9%;
  border-radius: 14px;
  border: 1px solid #ffffff70;
  background: #f0fdf4;
  box-shadow: 0 16px 34px #06282855;
  animation: float 4.5s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
.gallery-card:nth-child(3n + 2) img { background: var(--teal); }
.stats, .work { width: min(1200px, 100% - 32px); margin: 24px auto; }
.stats, .work-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats div, .work-grid figure {
  margin: 0;
  padding: clamp(13px, 2vw, 28px);
  border-radius: 19px;
  background: var(--paper);
  transition: translate 250ms, box-shadow 250ms;
}
.stats div:hover, .work-grid figure:hover { translate: 0 -6px; box-shadow: 0 14px 29px #06282822; }
.stats div:nth-child(2) { background: var(--lime); }
.stats div:nth-child(4) { background: var(--teal); color: white; }
.stats dt { font-size: .9rem; }
.stats dd { margin: 6px 0 0; font-size: clamp(1.7rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -.055em; }
.work { text-align: center; padding: clamp(28px, 6vw, 72px) 0; }
.work h2 { margin: 0; font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.06em; }
.work p { margin: 8px 0 28px; color: #4b5563; }
.work-grid figure { display: grid; place-items: center; min-height: 105px; background: var(--teal); }
.work-grid figure:nth-child(odd) { background: var(--paper); }
.work-grid img { max-height: 62px; object-fit: contain; }
.reveal { animation: arrive 640ms both; }
@keyframes arrive { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { to { transform: translateY(-7px); } }
@media (max-width: 650px) {
  .hero { margin: 6px; border-radius: 19px; }
  .stats, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

h1, .work h2, .stats dd, .brand {
  font-family: "Geist", "DM Sans", Inter, sans-serif;
}
h1 { letter-spacing: -.059em; }


.services { width: min(1200px, 100% - 32px); margin: 0 auto; padding: clamp(32px, 7vw, 84px) 0; }
.section-heading { text-align: center; max-width: 750px; margin: 0 auto 36px; }
.section-label { color: #27674d; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.section-heading h2 { font: 700 clamp(2rem, 5vw, 4rem)/1.06 "Geist", "DM Sans", sans-serif; letter-spacing: -.055em; margin: 12px 0; text-wrap: balance; }
.section-heading > p:last-child { color: #4b5563; line-height: 1.65; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid #06282820;
  border-radius: 24px;
  background: var(--paper);
  transition: translate 250ms, box-shadow 250ms;
}
.service-card:nth-child(2) { background: var(--teal); color: white; }
.service-card:nth-child(3) { background: #dcfce7; }
[data-theme="dark"] .service-card:nth-child(3) { background: #174237; }
.service-card:hover, .service-card:focus-within { translate: 0 -6px; box-shadow: 0 14px 30px #06282825; }
.service-metric { display: flex; gap: 10px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid currentColor; }
.service-metric strong { font: 700 clamp(2rem, 4vw, 3.4rem)/1 "Geist", sans-serif; letter-spacing: -.06em; }
.service-card:nth-child(2) strong { color: var(--lime); }
.service-card h3 { font-family: "Geist", "DM Sans", sans-serif; font-size: 1.45rem; line-height: 1.12; margin: 20px 0 0; }
.service-card p, .service-card li { line-height: 1.55; }
.service-card ul { padding-left: 1.2em; margin: 0 0 22px; }
.service-card li::marker { color: var(--green); }
.service-card .button { align-self: flex-start; margin-top: auto; font-size: .85rem; }
@media (max-width: 850px) { .services-grid { grid-template-columns: 1fr; } }

/* Homepage navigation */
.masthead { position: relative; z-index: 2; gap: 16px; }
.masthead .brand::before { content: none; }
.brand img, .footer-logo img { width: 112px; height: 44px; object-fit: contain; border-radius: 9px; }
.masthead nav, .header-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-size: .86rem; }
.header-actions .button { margin: 0; padding: 9px 16px; white-space: nowrap; }
.header-actions .button:hover { color: var(--teal); }
.services-menu { position: relative; }
.services-menu summary { cursor: pointer; }
.services-popover {
  position: absolute; top: calc(100% + 14px); left: -18px;
  width: min(320px, 80vw); padding: 16px;
  background: var(--teal); border: 1px solid #ffffff40; border-radius: 16px;
  box-shadow: 0 18px 40px #0004;
}
.services-popover .section-label { color: var(--lime); }
.services-popover a { display: block; padding: 8px 4px; }
.services-popover small { display: block; color: #dcfce7; margin-top: 4px; }
.icon-button {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  padding: 0; border: 1px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit; font: inherit; font-size: 1.15rem; cursor: pointer;
  transition: background-color 200ms, translate 200ms;
}
.icon-button:hover { background-color: #92c84c55; translate: 0 -2px; }
.nav-toggle { display: none; }

/* Editorial sections */
.home-section { padding: clamp(48px, 8vw, 110px) max(16px, calc((100% - 1200px) / 2)); }
.home-section h3 { font: 700 1.25rem/1.15 "Geist", "DM Sans", sans-serif; letter-spacing: -.025em; margin: 12px 0 0; }
.home-grid { display: grid; gap: 14px; }
.home-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-tile {
  border: 1px solid #0fb37d45; border-radius: 22px; background: var(--surface, white);
  padding: clamp(18px, 2.3vw, 30px); transition: translate 240ms, box-shadow 240ms, border-color 240ms;
}
.home-tile:hover, .home-tile:focus-within { translate: 0 -5px; border-color: var(--green); box-shadow: 0 12px 25px #06282820; }
.home-tile p { line-height: 1.5; margin: 10px 0 0; }
.industry-section { background: var(--soft, #f0fdf4); }
.industry-card { display: flex; flex-direction: column; align-items: flex-start; }
.industry-icon, .avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #dcfce7; color: var(--teal); font-size: 1.35rem; }
.industry-card:hover .industry-icon { rotate: -8deg; }
.industry-icon { transition: rotate 240ms; }
.industry-links { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 13px; align-items: center; font-weight: 700; font-size: .82rem; }
.portfolio-link { display: inline-block; background: var(--lime); color: var(--teal); padding: 7px 11px; border-radius: 100px; text-decoration: none; }
.problem .home-tile { border-color: #06282840; border-top: 3px solid #062828; }
.tile-metric { display: block; font: 700 clamp(2rem, 5vw, 4.3rem)/1 "Geist", sans-serif; letter-spacing: -.06em; }
.tile-metric:empty { display: none; }
.solution, .closing {
  color: white; background: radial-gradient(ellipse at 95% 110%, #0fb37d 0%, transparent 65%), var(--teal);
  border-radius: 26px; margin-inline: 12px;
}
.solution .home-tile { background: #ffffff12; border-color: #ffffff42; }
.solution .section-heading > p:last-child, .closing .section-heading > p:last-child { color: #f0fdf4; }
.device img { width: 100%; border-radius: 24px; }
.inquiry { background: var(--soft, #f0fdf4); }
.inquiry-form { display: grid; grid-template-columns: 2fr 3fr; gap: 16px; align-items: start; }
.service-options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.service-options label {
  display: flex; gap: 12px; align-items: center; cursor: pointer;
  padding: 16px; border: 1px solid #0fb37d55; border-radius: 16px; background: var(--surface, white);
}
.service-options label:has(:checked) { background: var(--lime); color: var(--teal); }
.service-options input { accent-color: var(--teal); }
.service-options small { display: block; margin-top: .25em; }
.form-panel { padding: clamp(18px, 3vw, 32px); border-radius: 24px; background: var(--surface, white); border: 1px solid #0fb37d55; }
.form-panel label { display: block; margin: 16px 0 6px; font-weight: 700; }
.form-panel input, .form-panel textarea { width: 100%; padding: 12px; color: inherit; background: transparent; border: 1px solid #0fb37d85; border-radius: 10px; font: inherit; }
.form-panel textarea { resize: vertical; }
.form-panel .button { border: 0; cursor: pointer; padding: 10px 20px; font-family: inherit; }
.form-panel .button:disabled { opacity: .65; cursor: wait; }
.form-status:empty { display: none; }
.process .home-tile { border-top: 4px solid var(--lime); }
.process .tile-metric { color: var(--accent-text, #27674d); font-size: 2rem; }
.results { background: var(--soft, #f0fdf4); }
.results .home-tile:nth-child(2) { background: var(--lime); color: var(--teal); }
.results .home-tile:nth-child(3) { background: var(--teal); color: white; }
.testimonial-frame { max-width: 920px; margin: 0 auto; border-radius: 26px; padding: clamp(20px, 5vw, 64px); background: var(--soft, #f0fdf4); }
.testimonial { margin: 0 0 25px; }
.testimonial blockquote { margin: 0 0 24px; font: 500 clamp(1.2rem, 3vw, 2.05rem)/1.45 "Geist", "DM Sans", sans-serif; }
.testimonial figcaption, .slider-controls, .slider-dots { display: flex; align-items: center; gap: 12px; }
.slider-controls { justify-content: flex-end; }
.slider-dots button { width: 17px; height: 17px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--lime); }
[hidden] { display: none !important; }
.closing .section-label { color: var(--lime); }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.closing-actions a { margin: 0; padding: 11px 18px; }
.outline-button { border: 1px solid #ffffff80; border-radius: 100px; text-decoration: none; transition: background-color 220ms; }
.outline-button:hover { background: #ffffff25; }
.site-footer { margin-top: 32px; padding: 44px max(16px, calc((100% - 1200px) / 2)) 16px; background: var(--teal); color: #f0fdf4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 22px; }
.site-footer h2 { font: 700 1.1rem "Geist", sans-serif; }
.site-footer p, .site-footer a { font-size: .9rem; line-height: 1.5; }
.site-footer a { display: block; margin-bottom: .45em; overflow-wrap: anywhere; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 14px; margin-top: 18px; border-top: 1px solid #ffffff35; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
:root[data-theme="dark"] {
  background: #071a17; color: #f0fdf4;
  --surface: #062828; --soft: #102f27; --paper: #12372d; --accent-text: #92c84c;
}
[data-theme="dark"] .section-label { color: var(--lime); }
[data-theme="dark"] .work p, [data-theme="dark"] .section-heading > p:last-child { color: #dcfce7; }
[data-theme="dark"] .stats div:nth-child(2) { color: var(--teal); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-grid; margin-left: auto; }
  .masthead nav { display: none; }
  .masthead nav.is-open { display: flex; flex-wrap: wrap; order: 4; flex-basis: 100%; padding: 12px 0; }
  .masthead { flex-wrap: wrap; }
  .header-actions > a:first-child { display: none; }
  .home-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .masthead { gap: 8px; }
  .masthead .brand img { width: 82px; }
  .header-actions { gap: 6px; }
  .header-actions .button { padding: 7px 10px; font-size: .76rem; }
  .masthead .icon-button { width: 33px; height: 33px; }
  .home-grid.three, .inquiry-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 365px) {
  .home-grid.four { grid-template-columns: 1fr; }
}

.process .home-grid {
  position: relative;
  padding-top: 16px;
  align-items: start;
  border-top: 2px solid #27674d;
}
.process .home-tile {
  --cord: 32px;
  --tilt: -1.5deg;
  position: relative;
  margin-top: var(--cord);
  rotate: var(--tilt);
  box-shadow: 0 10px 24px #06282814;
  transition: rotate 250ms, translate 250ms, box-shadow 250ms;
}
.process .home-tile:nth-child(2) { --cord: 66px; --tilt: 1deg; }
.process .home-tile:nth-child(3) { --cord: 40px; --tilt: -1deg; }
.process .home-tile::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: calc(50% - 1px);
  width: 2px;
  height: calc(var(--cord) + 19px);
  background: #27674d;
}
.process .home-tile::after {
  content: "";
  position: absolute;
  top: -12px;
  left: calc(50% - 8px);
  width: 16px;
  height: 19px;
  border-radius: 5px;
  background: #92c84c;
  box-shadow: 0 2px 6px #06282840;
}
.process .home-tile:hover { translate: 0; rotate: 0deg; }
@media (max-width: 650px) {
  .process .home-grid { border-top: 0; padding-top: 0; }
  .process .home-tile, .process .home-tile:nth-child(n) {
    --cord: 18px;
    margin-inline: 4px;
    rotate: 0deg;
  }
  .process .home-tile::before { height: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .process .home-tile { transition: none; }
}

.problem .home-grid { row-gap: 38px; padding-top: 18px; }
.problem .home-tile {
  position: relative;
  isolation: isolate;
  border: 1px solid #0fb37d66;
  border-radius: 6px 18px 18px 18px;
  background: var(--soft, #f0fdf4);
  box-shadow: 0 4px 0 #0fb37d25, 0 9px 18px #06282812;
}
.problem .home-tile::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  left: -1px;
  width: 44%;
  height: 24px;
  border: 1px solid #0fb37d66;
  border-bottom: 0;
  border-radius: 11px 16px 0 0;
  background: var(--soft, #f0fdf4);
}
.problem .home-tile::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 12px;
  width: 20%;
  height: 3px;
  border-radius: 99px;
  background: var(--lime);
}
