:root {
  --primary: #038b4f;
  --primary-dark: #01693b;
  --secondary: #f5e9d6;
  --danger: #e80000;
  --ink: #0d1712;
  --muted: #6b756f;
  --line: rgba(3, 139, 79, 0.14);
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 80px rgba(7, 34, 19, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-h: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(3, 139, 79, 0.10), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(245, 233, 214, 0.75), transparent 20%),
    linear-gradient(180deg, #fffdf8 0%, #fbfaf6 45%, #fffefb 100%);
  overflow-x: hidden;
}

body.is-preloading {
  overflow: hidden;
}

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

a {
  text-decoration: none;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image: radial-gradient(rgba(0, 0, 0, .14) 0.45px, transparent 0.45px);
  background-size: 6px 6px;
  z-index: -1;
}

.preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #07150e, #0d2819);
  color: #fff;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-mark {
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: .12em;
}

.preloader-line {
  width: min(360px, 72vw);
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin: 18px auto 14px;
  overflow: hidden;
}

.preloader-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.preloader-count {
  font-size: 1.2rem;
  font-weight: 700;
}

.preloader p {
  margin-top: 12px;
  color: rgba(255,255,255,.65);
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 80;
  padding: 20px 0;
  transition: all .35s ease;
}

.main-header.scrolled {
  padding: 12px 0;
}

.header-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  transition: all .35s ease;
}

.main-header.scrolled .header-wrap {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(8, 31, 20, 0.08);
  border-color: rgba(3, 139, 79, 0.12);
}

.brand {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--ink);
}

.brand-dark {
  color: var(--ink);
}

.desktop-nav {
  align-items: center;
  gap: 28px;
}

.desktop-nav a,
.mobile-links a,
.footer-links a {
  color: var(--ink);
  font-weight: 600;
  transition: color .2s ease;
}

.desktop-nav a:hover,
.mobile-links a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.btn {
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  border: 0;
}

.btn-main {
  background: linear-gradient(135deg, var(--primary), #06b866);
  color: #fff;
  box-shadow: 0 16px 34px rgba(3, 139, 79, 0.22);
}

.btn-main:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: 1px solid rgba(3, 139, 79, 0.16);
}

.btn-soft:hover {
  color: var(--primary);
  border-color: rgba(3, 139, 79, 0.28);
}

.menu-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(3, 139, 79, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.mobile-offcanvas {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(18px);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.mobile-links a {
  font-size: 1.15rem;
}

.snap-section {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 32px) 0 34px;
}

.hero-section {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-blur-left {
  width: 420px;
  height: 420px;
  background: rgba(3, 139, 79, 0.14);
  top: -120px;
  left: -140px;
}

.hero-blur-right {
  width: 340px;
  height: 340px;
  background: rgba(232, 0, 0, 0.08);
  right: -100px;
  bottom: 50px;
}

.eyebrow,
.section-kicker,
.form-kicker,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
}

.eyebrow,
.section-kicker,
.form-kicker {
  color: var(--primary);
}

.hero-title,
.section-intro h2,
.service-left-card h2 {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: .98;
  letter-spacing: -0.05em;
  font-weight: 900;
  margin: 18px 0 20px;
}

.section-intro h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.hero-text,
.lead-copy,
.copy-panel p,
.service-left-card p,
.contact-card span,
.contact-card strong,
.contact-form-card,
.process-step p,
.portfolio-copy h3,
.portfolio-copy span {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.stat-card,
.metric-box,
.feature-pill,
.process-step,
.contact-card,
.service-float-card,
.strip-card,
.contact-form-card,
.copy-panel,
.service-left-card {
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.68);
  box-shadow: var(--shadow);
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 18px 18px;
  min-height: 118px;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--ink);
}

.stat-card span {
  color: var(--muted);
  font-weight: 600;
}

.hero-visual-wrap {
  position: relative;
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius-xl) + 8px);
  overflow: hidden;
  min-height: 640px;
  box-shadow: 0 38px 90px rgba(2, 31, 18, 0.16);
}

.hero-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08)),
    linear-gradient(135deg, rgba(245, 233, 214, 0.58), rgba(255,255,255,0) 58%),
    linear-gradient(315deg, rgba(3, 139, 79, 0.2), rgba(255,255,255,0) 50%);
}

.hero-card {
  position: absolute;
  z-index: 2;
  width: min(270px, 76%);
  padding: 18px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  border: 1px solid rgba(255,255,255,.8);
}

.hero-card strong,
.contact-card strong,
.process-step h3,
.portfolio-copy h3,
.service-float-card h3,
.form-top h3 {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0;
}

.mini-label {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.hero-card-a { top: 32px; right: 28px; }
.hero-card-b { left: 24px; bottom: 118px; }
.hero-card-c { right: 32px; bottom: 34px; }

.floating-badge {
  position: absolute;
  top: -8px;
  right: 10px;
  z-index: 3;
  padding: 10px 16px;
  background: rgba(13, 23, 18, 0.86);
  color: #fff;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.hero-strip {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 26px;
  z-index: 4;
}

.strip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
}

.strip-card i {
  font-size: 1.2rem;
  color: var(--primary);
}

.strip-card span {
  white-space: nowrap;
  font-weight: 700;
}

.section-block {
  display: flex;
  align-items: center;
}

.section-intro {
  max-width: 860px;
}

.copy-panel,
.service-left-card,
.contact-form-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-xl);
}

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

.metric-box {
  border-radius: 20px;
  padding: 18px;
}

.metric-box strong {
  display: block;
  font-size: 1.15rem;
  color: var(--ink);
}

.metric-box span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.accent-soft {
  background: rgba(245, 233, 214, 0.82);
}

.accent-red {
  background: rgba(232, 0, 0, 0.06);
}

.image-panel,
.gallery-card,
.portfolio-card,
.service-visual-wrap {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 10px);
  box-shadow: 0 30px 80px rgba(7, 29, 18, 0.12);
}

.image-panel img,
.gallery-card img,
.portfolio-card img,
.service-bg,
.contact-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-panel {
  min-height: 620px;
}

.image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.08));
}

.image-chip {
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.image-chip-a { left: 22px; bottom: 28px; }
.image-chip-b { right: 22px; top: 24px; }

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.feature-pill {
  border-radius: 999px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}

.feature-pill i {
  color: var(--primary);
  font-size: 1.1rem;
}

.gallery-card {
  display: block;
  min-height: 640px;
}

.gallery-overlay,
.portfolio-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.gallery-overlay {
  padding: 20px 24px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(7, 22, 14, .72));
}

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

.process-step {
  border-radius: 24px;
  padding: 24px;
  min-height: 200px;
}

.process-step span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(3, 139, 79, 0.08);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 16px;
}

.process-step h3 {
  margin-bottom: 10px;
}

.tall-card {
  min-height: 650px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 20px;
}

.portfolio-card {
  min-height: 600px;
}

.portfolio-card-large {
  min-height: 640px;
}

.portfolio-card::after,
.service-visual-wrap::after,
.contact-bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 35%, rgba(6, 24, 14, 0.78));
}

.portfolio-copy {
  padding: 26px 24px;
}

.portfolio-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-copy h3 {
  color: #fff;
  font-size: 1.35rem;
}

.section-services {
  background: linear-gradient(180deg, #09150f 0%, #10231a 100%);
}

.service-left-card {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

.service-left-card h2,
.service-left-card p {
  color: #fff;
}

.service-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.service-mini-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}

.service-mini-grid i {
  color: var(--secondary);
}

.service-visual-wrap {
  min-height: 660px;
}

.service-overlay-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  align-content: end;
}

.service-float-card {
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.service-float-card h3,
.service-float-card p {
  color: #fff;
}

.service-float-card p {
  margin: 8px 0 0;
  font-size: .96rem;
}

.section-contact {
  color: #fff;
  overflow: hidden;
}

.contact-bg-wrap {
  position: absolute;
  inset: 0;
}

.contact-bg {
  position: absolute;
  inset: 0;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(3, 139, 79, .72), rgba(7, 12, 16, .78) 56%),
    linear-gradient(180deg, rgba(245, 233, 214, .12), transparent);
}

.light-version .section-kicker,
.light-version h2,
.light-text,
.contact-card strong,
.contact-card span,
.contact-card small,
.contact-form-card,
.contact-form-card .form-kicker,
.contact-form-card h3,
.main-footer {
  color: #fff;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.contact-card {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}

.contact-card small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  opacity: .7;
  margin-bottom: 10px;
}

.contact-card strong {
  display: block;
  margin-bottom: 6px;
}

.contact-form-card {
  border-radius: 30px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}

.form-top {
  margin-bottom: 20px;
}

.form-top h3 {
  margin-top: 8px;
  font-size: 1.8rem;
}

.form-control {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.12);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255,255,255,.68);
}

.form-control:focus {
  box-shadow: none;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.16);
  color: #fff;
}

.mini-contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-contact-info a {
  color: rgba(255,255,255,.92);
  font-weight: 600;
}

.main-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 38px 0 16px;
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a,
.footer-copy {
  color: rgba(255,255,255,.75);
}

.progress-rail {
  position: fixed;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  z-index: 40;
  align-items: center;
  gap: 12px;
}

.progress-line {
  width: 1px;
  height: 150px;
  background: rgba(3, 139, 79, 0.18);
}

.progress-dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(3, 139, 79, 0.3);
  background: rgba(255,255,255,.6);
  transition: all .25s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(3, 139, 79, 0.12);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
}

@media (max-width: 1399.98px) {
  .hero-title { font-size: clamp(2.4rem, 5vw, 4.8rem); }
  .hero-visual { min-height: 580px; }
  .image-panel { min-height: 540px; }
}

@media (max-width: 1199.98px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card, .portfolio-card-large { min-height: 420px; }
  .contact-cards { grid-template-columns: 1fr; }
  .service-overlay-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 76px; }
  .snap-section,
  .section-block,
  .hero-section { min-height: auto; }
  .hero-section { padding-bottom: 120px; }
  .hero-strip { position: static; margin-top: 24px; }
  .hero-visual { min-height: 480px; }
  .image-panel,
  .gallery-card,
  .tall-card,
  .service-visual-wrap { min-height: 420px; }
  .process-grid,
  .service-mini-grid,
  .metric-grid { grid-template-columns: 1fr; }
  .main-footer { justify-content: flex-start; }
}

@media (max-width: 767.98px) {
  .main-header { padding: 14px 0; }
  .header-wrap { padding: 8px 12px; }
  .hero-title,
  .section-intro h2,
  .service-left-card h2 { letter-spacing: -0.04em; }
  .hero-card { width: calc(100% - 24px); left: 12px !important; right: 12px !important; }
  .hero-card-a { top: 18px; }
  .hero-card-b { bottom: 118px; }
  .hero-card-c { bottom: 20px; }
  .floating-badge { display: none; }
  .hero-visual { min-height: 520px; }
  .service-overlay-grid { padding: 14px; }
  .contact-form-card { margin-top: 4px; }
}
