:root {
  --bg: #ebe5db;
  --bg-soft: #d8cec0;
  --surface: rgba(255, 251, 246, 0.8);
  --surface-strong: rgba(255, 252, 247, 0.94);
  --line: rgba(60, 46, 30, 0.12);
  --text: #211c17;
  --muted: #675d52;
  --accent: #d88a12;
  --accent-strong: #eda125;
  --accent-soft: rgba(216, 138, 18, 0.14);
  --accent-deep: #8b530a;
  --shadow: 0 30px 80px rgba(41, 31, 19, 0.12);
  --shadow-premium: 0 24px 60px rgba(43, 29, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Verdana", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(201, 138, 69, 0.2), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(106, 124, 115, 0.14), transparent 24%),
    linear-gradient(145deg, #f5efe6 0%, #ebe4d8 38%, #ddd2c1 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(rgba(98, 81, 60, 0.08) 0.6px, transparent 0.6px);
  background-size: auto, 3px 3px;
  opacity: 0.2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 78%, rgba(88, 103, 96, 0.12), transparent 24%),
    radial-gradient(circle at 24% 88%, rgba(169, 110, 56, 0.08), transparent 22%);
}

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

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

.site-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.72), rgba(250, 244, 237, 0.84)),
    linear-gradient(135deg, rgba(168, 106, 46, 0.12), transparent 52%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 138, 69, 0.12), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(201, 138, 69, 0.1), transparent 24%),
    radial-gradient(circle at 64% 76%, rgba(168, 106, 46, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(249, 244, 238, 0.98) 0%, rgba(243, 235, 226, 0.95) 54%, rgba(236, 225, 213, 0.96) 100%),
    linear-gradient(90deg, rgba(168, 106, 46, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(168, 106, 46, 0.04) 0 1px, transparent 1px 100%);
  background-size:
    auto,
    auto,
    auto,
    auto,
    120px 100%,
    100% 120px;
  background-position:
    center,
    center,
    center,
    center,
    center,
    center;
  opacity: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0 22%, rgba(168, 106, 46, 0.08) 22% 22.35%, transparent 22.35% 100%),
    linear-gradient(125deg, transparent 0 35%, rgba(168, 106, 46, 0.06) 35% 35.35%, transparent 35.35% 100%),
    linear-gradient(125deg, transparent 0 57%, rgba(168, 106, 46, 0.08) 57% 57.35%, transparent 57.35% 100%),
    linear-gradient(125deg, transparent 0 72%, rgba(168, 106, 46, 0.05) 72% 72.35%, transparent 72.35% 100%),
    linear-gradient(90deg, transparent 0 18%, rgba(128, 92, 59, 0.06) 18% 18.2%, transparent 18.2% 100%),
    linear-gradient(90deg, transparent 0 49%, rgba(128, 92, 59, 0.05) 49% 49.2%, transparent 49.2% 100%),
    linear-gradient(90deg, transparent 0 77%, rgba(128, 92, 59, 0.06) 77% 77.2%, transparent 77.2% 100%),
    linear-gradient(0deg, transparent 0 34%, rgba(128, 92, 59, 0.05) 34% 34.2%, transparent 34.2% 100%),
    linear-gradient(0deg, transparent 0 67%, rgba(128, 92, 59, 0.05) 67% 67.2%, transparent 67.2% 100%),
    radial-gradient(circle at 86% 74%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 12% 86%, rgba(201, 138, 69, 0.08), transparent 16%);
  clip-path: polygon(0 100%, 0 0, 100% 0, 100% 100%, 74% 100%, 74% 82%, 58% 82%, 58% 100%, 39% 100%, 39% 72%, 18% 72%, 18% 100%);
  opacity: 0.76;
  pointer-events: none;
}

.topbar,
.hero-grid,
.services-network,
.process-grid,
.cta-section,
.stats {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(246, 238, 229, 0.82));
  box-shadow: 0 10px 26px rgba(48, 34, 19, 0.08);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(48, 39, 28, 0.1);
  box-shadow: 0 18px 40px rgba(71, 44, 18, 0.12);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  margin-right: 4px;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(168, 106, 46, 0.12), rgba(201, 138, 69, 0.04));
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topbar-links a:hover {
  color: #5d3413;
  border-color: rgba(207, 122, 29, 0.32);
  background: linear-gradient(135deg, rgba(168, 106, 46, 0.18), rgba(201, 138, 69, 0.1));
  transform: translateY(-1px);
}

.eyebrow,
.brand-subtitle,
.section-kicker,
.stats span,
.service-card span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.brand-subtitle,
.stats span {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.brand-mark > div {
  min-width: 0;
}

.brand-subtitle {
  max-width: 24ch;
  line-height: 1.35;
}

.topbar-links a.top-link {
  background: linear-gradient(135deg, #27d366, #169c4f);
  color: #f7fff9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.topbar-links a.top-link:hover,
.button:hover {
  transform: translateY(-2px);
}

.topbar-links a.top-link:hover {
  border-color: rgba(22, 156, 79, 0.42);
  background: linear-gradient(135deg, #2fdf71, #148547);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  align-items: stretch;
  flex: 1;
}

.hero-copy,
.hero-panel,
.service-card,
.portfolio-service,
.process-card,
.stats article,
.cta-section {
  backdrop-filter: none;
}

.hero-copy {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1,
.section-heading h2,
.cta-section h2 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  line-height: 0.96;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5.8vw, 5rem);
}

.hero-text,
.section-heading p,
.hero-panel p,
.service-card p,
.process-card p,
.cta-section p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-text {
  max-width: 58ch;
  margin: 14px 0 16px;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.button:hover::after {
  transform: translateX(120%);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffaf2;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.button-whatsapp {
  width: fit-content;
  background: linear-gradient(135deg, #2fd46f, #1ea85a);
  color: #f7fff9;
  font-weight: 700;
}

.hero-panel,
.service-card,
.process-card,
.stats article,
.cta-section {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05)),
    var(--surface);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 14px 28px rgba(56, 39, 20, 0.06);
}

.hero-panel {
  padding: 24px;
  align-self: end;
}

.panel-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-panel h2 {
  margin: 14px 0 8px;
  font-size: 1.9rem;
  line-height: 1.1;
  font-family: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
}

.feature-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  margin-top: 9px;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 34px 0 76px;
}

.stats article {
  padding: 28px 28px;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-card {
  position: relative;
  gap: 18px;
}

.stat-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.stat-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  position: relative;
  border: 1px solid rgba(168, 106, 46, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(168, 106, 46, 0.12), rgba(255, 255, 255, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.stat-card-specialties .stat-icon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 11px;
}

.stat-card-specialties .stat-icon span {
  border: 1.6px solid rgba(112, 66, 25, 0.82);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
}

.stat-card-intervention .stat-icon span,
.stat-card-commitment .stat-icon span {
  position: absolute;
}

.stat-card-intervention .house-base {
  left: 10px;
  bottom: 11px;
  width: 18px;
  height: 13px;
  border: 2px solid rgba(112, 66, 25, 0.82);
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.stat-card-intervention .house-roof {
  left: 8px;
  bottom: 22px;
  width: 22px;
  height: 22px;
  border-top: 2px solid rgba(112, 66, 25, 0.82);
  border-left: 2px solid rgba(112, 66, 25, 0.82);
  transform: rotate(45deg);
}

.stat-card-intervention .tower {
  right: 10px;
  bottom: 11px;
  width: 12px;
  height: 24px;
  border: 2px solid rgba(112, 66, 25, 0.82);
  border-bottom-width: 4px;
  border-radius: 4px 4px 3px 3px;
  box-shadow:
    inset 0 -6px 0 rgba(112, 66, 25, 0.12),
    -6px 0 0 -4px rgba(112, 66, 25, 0.82);
}

.stat-card-commitment .shield-outline {
  left: 16px;
  top: 10px;
  width: 20px;
  height: 26px;
  border: 2px solid rgba(112, 66, 25, 0.82);
  border-radius: 10px 10px 8px 8px;
  clip-path: polygon(50% 0%, 100% 16%, 100% 62%, 50% 100%, 0% 62%, 0% 16%);
  background: rgba(255, 255, 255, 0.2);
}

.stat-card-commitment .shield-mark {
  left: 23px;
  top: 20px;
  width: 8px;
  height: 12px;
  border-right: 2px solid rgba(112, 66, 25, 0.82);
  border-bottom: 2px solid rgba(112, 66, 25, 0.82);
  transform: rotate(45deg);
}

.stats strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.4rem, 2.4vw, 1.62rem);
  line-height: 1.1;
}

main section + section {
  margin-top: 76px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(207, 122, 29, 0.15));
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 14px;
}

.services-network {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.services-column {
  position: relative;
  display: grid;
  gap: 8px;
}

.services-column::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(207, 122, 29, 0.28), transparent);
}

.services-column-left::after {
  right: -8px;
}

.services-column-right::after {
  left: -8px;
}

.services-hub {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(240, 231, 220, 0.94));
  box-shadow: 0 18px 36px rgba(88, 59, 24, 0.1);
}

.services-hub::before,
.services-hub::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 1px;
  background: rgba(207, 122, 29, 0.4);
}

.services-hub::before {
  left: -26px;
}

.services-hub::after {
  right: -26px;
}

.services-hub img {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(48, 39, 28, 0.1);
  box-shadow: 0 10px 20px rgba(71, 44, 18, 0.12);
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 11px 8px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  height: 100%;
  min-height: 128px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(243, 235, 225, 0.9)),
    var(--surface);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.34) 50%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.services-column-left .service-card::after,
.services-column-right .service-card::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 1px;
  background: rgba(207, 122, 29, 0.35);
}

.services-column-left .service-card::after {
  right: -14px;
}

.services-column-right .service-card::before {
  left: -14px;
}

.service-card:hover,
.portfolio-service:hover,
.process-card:hover,
.stats article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(207, 122, 29, 0.18);
}

.service-card:hover {
  box-shadow: 0 12px 30px rgba(207, 122, 29, 0.2);
  border-color: rgba(207, 122, 29, 0.35);
}

.service-card:hover::after {
  transform: translateX(120%);
}

.service-card span {
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 700;
}

.service-card h3,
.portfolio-copy h3,
.process-card h3 {
  margin: 6px 0 4px;
  font-size: 0.9rem;
}

.service-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.33;
}

.service-card > p:not(.card-motivation) {
  max-width: 100%;
}

.card-motivation {
  margin-top: 6px;
  margin-bottom: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(48, 39, 28, 0.08);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.service-card.reveal.visible {
  animation: servicePop 460ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes servicePop {
  0% {
    transform: translateY(10px) scale(0.97);
    opacity: 0;
  }
  70% {
    transform: translateY(-2px) scale(1.01);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.portfolio-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-service {
  padding: 16px 32px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)),
    var(--surface);
  border-radius: 20px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
}

.portfolio-service::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(232, 157, 60, 0.28), rgba(255, 255, 255, 0.08), rgba(140, 79, 22, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.portfolio-service-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: end;
  margin-bottom: 8px;
}

.portfolio-service-head h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.5vw, 1.7rem);
  line-height: 1.15;
  font-family: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
}

.portfolio-service-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.portfolio-thumbs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 40px;
  margin-top: 0;
}

.thumb-count-1 {
  grid-template-columns: 1fr;
  grid-auto-rows: 180px;
}

.thumb-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 40px;
}

.thumb-item {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  outline: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  justify-self: stretch;
  align-self: stretch;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.thumb-item:hover {
  transform: translateY(-2px);
  border-color: rgba(207, 122, 29, 0.28);
  box-shadow: 0 18px 36px rgba(88, 59, 24, 0.14);
  filter: saturate(1.04) contrast(1.02);
}

.thumb-item img,
.thumb-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.portfolio-thumbs .thumb-item:first-child {
  grid-column: span 2;
  grid-row: span 3;
}

.thumb-count-1 .thumb-item:first-child {
  grid-column: 1;
  grid-row: 1;
}

.thumb-count-2 .thumb-item:first-child {
  grid-column: 1 / -1;
  grid-row: span 3;
}

.portfolio-thumbs .thumb-item:not(:first-child),
.thumb-item-large:not(:first-child),
.thumb-item-wide,
.thumb-item-tall {
  grid-column: auto;
  grid-row: auto;
}

.thumb-video-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.9);
  color: #5d3413;
  box-shadow: 0 12px 28px rgba(48, 34, 19, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.thumb-video-badge::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.portfolio-motivation {
  margin-top: 8px;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.45;
}

.portfolio-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.portfolio-support {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 9, 12, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.lightbox-panel {
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.lightbox-image,
.lightbox-video {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-video {
  background: #0f1113;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 106, 46, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 238, 229, 0.92));
  color: var(--accent-deep);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(48, 34, 19, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, border-color 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(168, 106, 46, 0.36);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 228, 215, 0.96));
}

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

.process-card {
  padding: 12px 24px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.process-card h3 {
  margin: 4px 0 6px;
  font-size: 1rem;
}

.process-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(201, 138, 69, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(168, 106, 46, 0.16), rgba(255, 250, 243, 0.6)),
    rgba(255, 255, 255, 0.34);
}

.cta-section h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.contact-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-hours {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 20px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

@media (max-width: 920px) {
  .hero-grid,
  .cta-section,
  .process-grid,
  .stats,
  .portfolio-service-head,
  .services-network {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    align-self: stretch;
  }

  .stats article {
    min-height: 128px;
    padding: 24px 24px;
  }

  .stat-card {
    gap: 16px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .stat-copy span {
    font-size: 0.8rem;
  }

  .stat-copy strong {
    font-size: clamp(1.24rem, 3.2vw, 1.48rem);
  }

  .topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand-mark {
    width: 100%;
    flex: 0 0 100%;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar-links {
    width: auto;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: 0;
  }

  .brand-subtitle {
    max-width: 20ch;
    font-size: 0.8rem;
    line-height: 1.3;
  }

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

  .services-hub {
    width: 120px;
    height: 120px;
    margin-bottom: 6px;
  }

  .services-hub::before,
  .services-hub::after,
  .services-column::after,
  .services-column-left .service-card::after,
  .services-column-right .service-card::before {
    display: none;
  }

  .services-hub img {
    width: 88px;
    height: 88px;
  }

  .portfolio-thumbs,
  .thumb-count-2,
  .thumb-count-4,
  .thumb-count-5,
  .thumb-count-6,
  .thumb-count-7 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 42px;
  }

  .thumb-count-1 {
    grid-template-columns: 1fr;
    grid-auto-rows: 188px;
  }

  .thumb-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 42px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 10px;
  }

  .hero {
    padding: 18px;
    border-radius: 24px;
    min-height: auto;
  }

  .hero::before {
    background-position: center;
    opacity: 0.82;
  }

  .hero::after {
    opacity: 0.72;
  }

  .topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 20px;
  }

  .brand-mark {
    align-items: flex-start;
    gap: 8px;
  }

  .brand-subtitle {
    max-width: 18ch;
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .topbar-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
  }

  .topbar-links a {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 6px;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .brand-mark img {
    width: 72px;
    height: 72px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .portfolio-service {
    padding: 14px;
    min-height: auto;
  }

  .services-network,
  .portfolio-blocks {
    grid-template-columns: 1fr;
  }

  .portfolio-thumbs,
  .thumb-count-2,
  .thumb-count-4,
  .thumb-count-5,
  .thumb-count-6,
  .thumb-count-7,
  .thumb-count-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 55px;
  }

  .thumb-count-1 {
    grid-template-columns: 1fr;
    grid-auto-rows: 190px;
  }

  .thumb-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 55px;
  }

  .portfolio-thumbs .thumb-item:first-child {
    grid-column: 1 / -1;
    grid-row: span 4;
  }

  .thumb-count-1 .thumb-item:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .thumb-count-2 .thumb-item:first-child {
    grid-column: 1 / -1;
    grid-row: span 4;
  }

  .lightbox {
    padding: 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 1.2rem;
  }

  .site-footer {
    width: min(100% - 20px, 1200px);
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
  }
}
