:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #5f6368;
  --line: #e7e0d8;
  --lime: #c8f24d;
  --teal: #0f766e;
  --blue: #2563eb;
  --coral: #ef6f5e;
  --charcoal: #101820;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(231, 224, 216, 0.88);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  font-weight: 900;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(16, 24, 32, 0.12);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-name {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: #34383d;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #ece9e2;
  color: var(--ink);
}

.nav-links .nav-cta {
  margin-left: 0.4rem;
  background: var(--ink);
  color: #fff;
}

.nav-links .nav-cta:hover {
  background: var(--teal);
  color: #fff;
}

.section,
.hero,
.page-hero {
  padding: clamp(56px, 8vw, 104px) 0;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(780px, calc(100% - 32px));
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: var(--charcoal);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 90px);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.64) 60%, transparent 100%);
}

.hero-motion {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(200, 242, 77, 0.14) 48%, transparent 56%);
  animation: hero-scan 8s ease-in-out infinite;
  transform: translateX(-70%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px - clamp(56px, 8vw, 104px) * 2 - 50px);
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: var(--lime);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(200, 242, 77, 0.14);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(4rem, 8vw, 7.5rem);
}

.hero-role {
  margin: 1rem 0 0;
  color: var(--lime);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 900;
}

.hero .lead {
  max-width: 580px;
  margin: 1.4rem 0 0;
  color: #e8edf0;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-height: min(650px, calc(100vh - 170px));
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 620px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #d9dbd8;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 24, 32, 0.08) 52%, rgba(16, 24, 32, 0.24) 100%);
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  animation: hero-photo-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.floating-card {
  position: absolute;
  z-index: 2;
  width: min(240px, 42vw);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  animation: float-card 5s ease-in-out infinite;
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  color: var(--lime);
  font-size: 1.2rem;
  line-height: 1;
}

.floating-card span {
  margin-top: 0.35rem;
  color: #e8edf0;
  font-weight: 750;
}

.floating-card-top {
  top: 9%;
  left: 0;
}

.floating-card-bottom {
  right: 5%;
  bottom: 7%;
  animation-delay: -2.1s;
}

.hero-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.ticker-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  padding: 0.8rem 0;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-light {
  border-color: var(--line);
  background: var(--paper);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.metric {
  padding: clamp(22px, 4vw, 34px);
  background: var(--paper);
}

.metric strong {
  display: block;
  color: var(--teal);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-weight: 720;
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.card,
.case-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card {
  padding: clamp(22px, 3vw, 30px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card-visual {
  overflow: hidden;
  margin: -10px -10px 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f4f7f8;
}

.card-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  transition: transform 220ms ease;
}

.card:hover .card-visual img {
  transform: scale(1.04);
}

.card:hover,
.case-card:hover,
.article-card:hover,
.contact-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.12);
}

.card h3,
.case-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.card p,
.case-copy p,
.article-card p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.service-tag {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: #edf7f5;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.band {
  background: #eef2f0;
}

.process {
  counter-reset: step;
}

.process .card {
  position: relative;
  padding-top: 4.2rem;
}

.process .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 950;
}

.case-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-media {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 1.2rem;
  background: #f3f4f1;
  overflow: hidden;
}

.case-media img {
  max-height: 180px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.case-card:hover .case-media img {
  transform: scale(1.04);
}

.case-copy {
  padding: 1.25rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #35393d;
  font-size: 0.82rem;
  font-weight: 820;
}

.about-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.portrait {
  overflow: hidden;
  border-radius: 8px;
  background: #e7e2dc;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.quote {
  margin: 1.4rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--lime);
  color: #2a2e31;
  font-size: 1.12rem;
  font-weight: 760;
}

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

.page-hero {
  background: #eef2f0;
}

.page-hero .lead {
  max-width: 760px;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.article-card {
  display: grid;
  gap: 0.6rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card h2,
.article-card h3 {
  margin: 0;
  line-height: 1.15;
}

.article-meta {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 850;
}

.prose {
  padding: clamp(52px, 8vw, 90px) 0;
}

.prose h2 {
  margin: 2.2rem 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.prose h3 {
  margin: 1.65rem 0 0.45rem;
}

.prose p,
.prose li {
  color: #454a4f;
  font-size: 1.05rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-panel {
  padding: clamp(24px, 4vw, 34px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-panel h2,
.contact-panel h3 {
  margin: 0 0 0.8rem;
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.contact-list a {
  color: var(--teal);
  font-weight: 850;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  color: #e9eef2;
}

.site-footer .brand-name {
  color: #fff;
}

.site-footer .brand-subtitle {
  color: #bac4cb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.4rem;
}

.footer-grid p {
  color: #bac4cb;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: #e9eef2;
  text-decoration: none;
}

.legal {
  margin-top: 2rem;
  color: #aab4ba;
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.34), 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, 0.35);
  animation: pulse-ring 2.4s ease-out infinite;
}

.whatsapp-float svg {
  position: relative;
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 52px rgba(37, 211, 102, 0.42), 0 8px 22px rgba(0, 0, 0, 0.2);
}

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-scan {
  0%, 28% {
    transform: translateX(-72%);
  }
  58%, 100% {
    transform: translateX(72%);
  }
}

@keyframes hero-photo-in {
  from {
    opacity: 0;
    transform: translateX(28px) scale(1.04);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1.02);
  }
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.86);
  }
  80%, 100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 72px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding-bottom: 96px;
  }

  .hero::before {
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.68) 70%, transparent 100%);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-photo {
    inset: 0;
    width: 100%;
  }

  .metrics,
  .grid-3,
  .grid-2,
  .about-split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-subtitle {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 430px;
  }

  .floating-card {
    width: min(210px, 60vw);
  }

  .floating-card-top {
    top: 6%;
  }

  .floating-card-bottom {
    right: 0;
    bottom: 5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
