:root {
  --paper: #f3f0ea;
  --warm: #e7ddd3;
  --ink: #171412;
  --brown: #6f4c3c;
  --taupe: #b59681;
  --sand: #d8c6b5;
  --line: rgba(111, 76, 60, 0.18);
  --glass: rgba(255, 252, 245, 0.62);
  --white: #fffaf1;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 78% 12%, rgba(181, 150, 129, 0.46), transparent 28%),
    radial-gradient(circle at 20% 72%, rgba(111, 76, 60, 0.22), transparent 32%),
    linear-gradient(135deg, #f8f4ed, #ece2d8 48%, #f5f0e7);
  content: "";
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(23, 20, 18, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 18, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.mind-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.mind-field span {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(111, 76, 60, 0.13);
  border-radius: 52% 48% 46% 54%;
  opacity: 0.42;
  transform-origin: center;
  animation: mindDrift 18s ease-in-out infinite alternate;
}

.mind-field span::before {
  position: absolute;
  inset: 26%;
  border: 1px solid rgba(181, 150, 129, 0.16);
  border-radius: 45% 55% 56% 44%;
  content: "";
}

.mind-field span:nth-child(1) {
  top: 14%;
  left: 4%;
}

.mind-field span:nth-child(2) {
  top: 22%;
  right: 8%;
  width: 280px;
  height: 170px;
  animation-delay: -4s;
}

.mind-field span:nth-child(3) {
  bottom: 16%;
  left: 14%;
  width: 160px;
  height: 260px;
  animation-delay: -8s;
}

.mind-field span:nth-child(4) {
  right: 18%;
  bottom: 8%;
  width: 240px;
  height: 240px;
  animation-delay: -12s;
}

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

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

.topbar {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(1120px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transform: translateX(-50%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.topbar.is-transparent {
  opacity: 0;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  transform: translateX(-50%) translateY(-16px);
}

.brand img {
  width: 118px;
  filter: brightness(0.1);
  transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
}

.brand {
  flex: 0 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--brown);
  font-family: "Aptos", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  visibility: visible;
}

nav a {
  position: relative;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 0 7px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  color: var(--brown);
  transition: color 200ms ease, transform 200ms ease;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.34;
  transform: scaleX(0.38);
  transform-origin: left;
  transition: opacity 200ms ease, transform 200ms ease;
}

nav a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-instagram {
  width: 24px;
  min-height: 24px;
  justify-content: center;
  padding-bottom: 0;
}

.nav-instagram::after {
  display: none;
}

.nav-instagram svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.topbar.is-transparent nav a {
  background: transparent;
  backdrop-filter: none;
}

.topbar.is-transparent .brand img {
  opacity: 0;
  filter: brightness(0.1);
  transform: scale(0.9);
}

.hero,
.diagnosis,
.system,
.services,
.proof,
.team,
.contact {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(42px, 5.4vw, 78px);
  padding-top: 148px;
  padding-bottom: 72px;
}

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

.eyebrow {
  margin: 0 0 20px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 26px;
  font-size: clamp(3.15rem, 4.35vw, 5rem);
  font-weight: 400;
  line-height: 0.96;
}

h1 span {
  display: block;
  color: var(--brown);
  font-style: italic;
  animation: thoughtTint 6s ease-in-out infinite;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(23, 20, 18, 0.72);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.button,
.link-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: "Aptos", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.button {
  padding: 0 24px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 50px rgba(23, 20, 18, 0.18);
  transition: transform 200ms ease, background 200ms ease;
}

.button:hover {
  background: var(--brown);
  transform: translateY(-2px);
}

.link-button {
  color: var(--brown);
}

.hero-stage {
  position: relative;
  min-height: clamp(500px, 42vw, 610px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-stage img {
  position: relative;
  z-index: 2;
  width: clamp(310px, 25vw, 390px);
  height: clamp(390px, 31.5vw, 490px);
  border-radius: 42% 42% 36% 36%;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(42, 27, 18, 0.18);
  animation: floatPortrait 7s ease-in-out infinite alternate;
}

.orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(111, 76, 60, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: clamp(390px, 31vw, 500px);
  height: clamp(390px, 31vw, 500px);
  animation: rotateSlow 24s linear infinite;
}

.orbit-two {
  width: clamp(290px, 23vw, 380px);
  height: clamp(440px, 36vw, 560px);
  transform: translate(-50%, -50%) rotate(28deg);
  animation: rotateReverse 28s linear infinite;
}

.orbit-three {
  width: clamp(430px, 34vw, 560px);
  height: clamp(250px, 20vw, 330px);
  transform: translate(-50%, -50%) rotate(-17deg);
  animation: rotateSlow 32s linear infinite;
}

.orbit::before,
.orbit::after {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brown);
  content: "";
}

.orbit::before {
  top: 12%;
  left: 20%;
}

.orbit::after {
  right: 12%;
  bottom: 24%;
  background: var(--taupe);
}

.metric-card {
  position: absolute;
  z-index: 4;
  min-width: 148px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 250, 241, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(42, 27, 18, 0.14);
}

.metric-card span {
  color: var(--brown);
  font-size: 0.75rem;
  font-weight: 900;
}

.metric-card strong,
.metric-card small {
  display: block;
}

.metric-card strong {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.metric-card small {
  color: var(--brown);
  font-weight: 800;
}

.card-a {
  top: 116px;
  left: 22px;
}

.card-b {
  right: 20px;
  bottom: 100px;
}

.diagnosis,
.system,
.services,
.proof,
.team,
.contact {
  padding: 88px 0;
}

.diagnosis-heading {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 46px;
  align-items: start;
  margin-bottom: 36px;
}

.diagnosis h2,
.section-title h2,
.proof h2,
.contact h2,
.system h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.2vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(111, 76, 60, 0.22);
  border-bottom: 1px solid rgba(111, 76, 60, 0.22);
}

.diagnosis-grid article,
.service-matrix article {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 0;
  border-radius: 0;
  padding: 24px 28px;
  background: transparent;
  box-shadow: none;
}

.diagnosis-grid article {
  min-height: 188px;
  border-right: 1px solid rgba(111, 76, 60, 0.16);
}

.diagnosis-grid article:last-child {
  border-right: 0;
}

.diagnosis-grid span,
.service-matrix small {
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diagnosis-grid p,
.service-matrix p,
.system-copy p,
.team-grid p {
  color: rgba(23, 20, 18, 0.68);
  line-height: 1.6;
}

.diagnosis-grid p {
  margin-top: 52px;
  margin-bottom: 0;
  font-size: 1.06rem;
}

.system {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) 1fr;
  align-items: center;
  gap: 72px;
}

.system-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 148px;
  height: 148px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  box-shadow: 0 22px 70px rgba(23, 20, 18, 0.2);
  animation: corePulse 5.2s ease-in-out infinite;
}

.system-visual::before,
.system-visual::after {
  position: absolute;
  border: 1px solid rgba(111, 76, 60, 0.22);
  border-radius: 50%;
  content: "";
}

.system-visual::before {
  width: 350px;
  height: 350px;
  animation: rotateSlow 28s linear infinite;
}

.system-visual::after {
  width: 430px;
  height: 230px;
  transform: rotate(-24deg);
  animation: rotateReverse 34s linear infinite;
}

.system-visual span {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(111, 76, 60, 0.2);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  background: rgba(255, 250, 241, 0.72);
  color: var(--brown);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  animation: chipFloat 5s ease-in-out infinite;
}

.system-visual span:nth-child(3) {
  animation-delay: -1s;
}

.system-visual span:nth-child(4) {
  animation-delay: -2s;
}

.system-visual span:nth-child(5) {
  animation-delay: -3s;
}

.system-visual span:nth-child(2) {
  top: 66px;
  left: 50px;
}

.system-visual span:nth-child(3) {
  top: 112px;
  right: 18px;
}

.system-visual span:nth-child(4) {
  bottom: 100px;
  left: 16px;
}

.system-visual span:nth-child(5) {
  right: 56px;
  bottom: 58px;
}

.system-copy p {
  max-width: 600px;
  font-size: 1.08rem;
}

.system-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.system-points strong {
  position: relative;
  border-top: 1px solid rgba(111, 76, 60, 0.18);
  padding: 16px 0 0 22px;
  background: transparent;
}

.system-points strong::before {
  position: absolute;
  top: 21px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brown);
  content: "";
}

.section-title {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.service-matrix {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(111, 76, 60, 0.16);
  overflow: hidden;
  isolation: isolate;
}

.service-matrix::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(181, 150, 129, 0.06), rgba(255, 250, 241, 0.24), rgba(181, 150, 129, 0.08), rgba(255, 250, 241, 0.22));
  background-size: 260% 260%;
  content: "";
  pointer-events: none;
  mix-blend-mode: multiply;
  animation: serviceAmbient 5.8s linear infinite;
}

.service-matrix::after {
  display: none;
}

.service-matrix article {
  position: relative;
  z-index: 2;
  min-height: 260px;
  padding: 28px;
  background: rgba(243, 240, 234, 0.92);
  animation: serviceBreath 4.8s ease-in-out infinite;
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.service-matrix article::before {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 42px;
  height: 1px;
  background: rgba(111, 76, 60, 0.34);
  content: "";
  transform-origin: right;
  transition: transform 220ms ease;
}

.service-matrix article:hover,
.team-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 54px rgba(42, 27, 18, 0.08);
}

.service-matrix article:hover {
  background: rgba(255, 250, 241, 0.72);
}

.service-matrix article:hover::before {
  transform: scaleX(1.8);
}

.service-matrix small {
  display: inline-block;
  animation: serviceNumber 3.6s ease-in-out infinite;
}

.service-matrix article:nth-child(2) small {
  animation-delay: 0.18s;
}

.service-matrix article:nth-child(2) {
  animation-delay: 0.2s;
}

.service-matrix article:nth-child(3) small {
  animation-delay: 0.36s;
}

.service-matrix article:nth-child(3) {
  animation-delay: 0.4s;
}

.service-matrix article:nth-child(4) small {
  animation-delay: 0.54s;
}

.service-matrix article:nth-child(4) {
  animation-delay: 0.6s;
}

.service-matrix article:nth-child(5) small {
  animation-delay: 0.72s;
}

.service-matrix article:nth-child(5) {
  animation-delay: 0.8s;
}

.service-matrix article:nth-child(6) small {
  animation-delay: 0.9s;
}

.service-matrix article:nth-child(6) {
  animation-delay: 1s;
}

.service-matrix h3 {
  margin: 72px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.1;
}

.proof {
  overflow: hidden;
}

.proof-copy {
  max-width: 820px;
  margin-bottom: 54px;
}

.brand-strip {
  position: relative;
  display: flex;
  overflow: hidden;
  border-top: 1px solid rgba(111, 76, 60, 0.16);
  border-bottom: 1px solid rgba(111, 76, 60, 0.16);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent);
}

.brand-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 56px;
  animation: brandCarousel 34s linear infinite;
}

.brand-strip:hover .brand-track {
  animation-play-state: paused;
}

.brand-track img {
  flex: 0 0 auto;
  width: 150px;
  height: 74px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.82;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.brand-track img:hover {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: scale(1.06);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 241, 0.66);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.team-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: top center;
}

.team-grid div {
  padding: 22px;
}

.team-grid span {
  color: var(--brown);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-grid h3 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.05rem;
  font-weight: 400;
}

.contact {
  text-align: center;
}

.contact > div {
  max-width: 840px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-lg);
  padding: 70px 56px;
  background:
    radial-gradient(circle at 20% 0%, rgba(181, 150, 129, 0.36), transparent 40%),
    rgba(255, 250, 241, 0.68);
  backdrop-filter: blur(18px);
}

.start-card {
  position: relative;
  max-width: 1040px !important;
  margin-bottom: 34px !important;
  overflow: hidden;
}

.start-card::before {
  position: absolute;
  inset: -45% auto auto -18%;
  width: 62%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 150, 129, 0.2), transparent 68%);
  content: "";
  opacity: 0.44;
  transform: translateX(-8%) rotate(8deg);
  pointer-events: none;
  animation: ambientGlow 9s ease-in-out infinite alternate;
}

.start-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 250, 241, 0.38) 42%, transparent 64%);
  content: "";
  opacity: 0.48;
  pointer-events: none;
  transform: translateX(-120%);
  animation: cardSweep 6.5s ease-in-out infinite;
}

.start-card h2 {
  margin-bottom: 18px;
}

.start-copy {
  max-width: 720px;
  margin: 0 auto 44px;
  color: rgba(23, 20, 18, 0.68);
  line-height: 1.55;
}

.start-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 48px 1.25fr 48px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.start-flow::before {
  position: absolute;
  top: 50%;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 76, 60, 0.7), transparent);
  content: "";
  opacity: 0.55;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  animation: flowPulse 3.8s ease-in-out infinite;
}

.start-flow span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 20, 18, 0.42);
  padding: 0 18px;
  background: rgba(243, 240, 234, 0.46);
  font-family: "Aptos", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.96rem;
}

.start-flow span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(181, 150, 129, 0.2) 48%, transparent 100%);
  content: "";
  transform: translateX(-120%);
}

.start-card.is-visible .start-flow span::after {
  animation: stepSheen 900ms ease forwards;
}

.start-card.is-visible .start-flow span:nth-child(3)::after {
  animation-delay: 380ms;
}

.start-card.is-visible .start-flow span:nth-child(5)::after {
  animation-delay: 760ms;
}

.start-flow i {
  position: relative;
  z-index: 1;
  height: 1px;
  overflow: hidden;
  background: rgba(23, 20, 18, 0.22);
}

.start-flow i::after {
  position: absolute;
  inset: 0;
  background: var(--brown);
  content: "";
  transform: translateX(-100%);
}

.start-card.is-visible .start-flow i::after {
  animation: flowLine 2200ms ease-in-out infinite;
}

.start-flow i:nth-of-type(2)::after {
  animation-delay: 520ms;
}

.start-flow i::before {
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--brown);
  border-right: 1px solid var(--brown);
  content: "";
  opacity: 0;
  transform: translateY(-50%) rotate(45deg);
}

.start-card.is-visible .start-flow i::before {
  animation: arrowPulse 2200ms ease-in-out infinite 800ms;
}

.start-card.is-visible .start-flow i:nth-of-type(2)::before {
  animation-delay: 1320ms;
}

.start-card strong {
  display: block;
  color: var(--brown);
  font-family: "Aptos", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact h2 {
  margin-bottom: 34px;
}

.instagram-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  margin-left: 12px;
  border-bottom: 1px solid rgba(111, 76, 60, 0.34);
  color: var(--brown);
  font-family: "Aptos", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.instagram-link:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

.instagram-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.whatsapp-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 18px 52px rgba(23, 20, 18, 0.2);
}

.whatsapp-widget span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.36);
  animation: pulse 1.9s ease-out infinite;
}

.whatsapp-widget svg {
  position: relative;
  z-index: 1;
  width: 33px;
  fill: white;
}

footer {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 24px;
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 12px;
}

footer img {
  width: 132px;
  filter: brightness(0.1);
}

.footer-brand p,
footer span {
  margin: 0;
  color: rgba(23, 20, 18, 0.7);
}

.footer-social {
  color: var(--brown);
  font-family: "Aptos", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-social:hover {
  color: var(--ink);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms ease, transform 760ms ease;
}

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

@keyframes floatPortrait {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-14px) scale(1.018);
  }
}

@keyframes rotateSlow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rotateReverse {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-42%);
  }
}

@keyframes brandCarousel {
  to {
    transform: translateX(calc(-50% - 28px));
  }
}

@keyframes pulse {
  to {
    opacity: 0;
    transform: scale(1.58);
  }
}

@keyframes mindDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  100% {
    transform: translate3d(26px, -18px, 0) rotate(18deg) scale(1.08);
  }
}

@keyframes thoughtTint {
  0%,
  100% {
    color: var(--brown);
  }

  50% {
    color: #9a745f;
  }
}

@keyframes corePulse {
  0%,
  100% {
    box-shadow: 0 22px 70px rgba(23, 20, 18, 0.2);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 28px 90px rgba(111, 76, 60, 0.28);
    transform: scale(1.035);
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes serviceAmbient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 260% 50%;
  }
}

@keyframes serviceNumber {
  0%,
  64%,
  100% {
    color: var(--brown);
    transform: translateY(0);
  }

  18% {
    color: var(--ink);
    transform: translateY(-2px);
  }
}

@keyframes serviceBreath {
  0%,
  100% {
    background: rgba(243, 240, 234, 0.92);
  }

  50% {
    background: rgba(255, 250, 241, 0.78);
  }
}

@keyframes flowLine {
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes ambientGlow {
  0% {
    opacity: 0.28;
    transform: translateX(-8%) translateY(0) rotate(8deg) scale(0.96);
  }

  100% {
    opacity: 0.62;
    transform: translateX(112%) translateY(6%) rotate(8deg) scale(1.08);
  }
}

@keyframes cardSweep {
  0%,
  34% {
    transform: translateX(-120%);
  }

  68%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes stepSheen {
  to {
    transform: translateX(120%);
  }
}

@keyframes flowPulse {
  0% {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
  }

  36% {
    opacity: 0.5;
  }

  72%,
  100% {
    opacity: 0;
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes arrowPulse {
  0%,
  30% {
    opacity: 0;
  }

  45%,
  65% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 34px;
  }

  h1 {
    font-size: clamp(3rem, 5vw, 4.8rem);
  }

  .hero-stage {
    min-height: 470px;
  }

  .hero-stage img {
    width: min(310px, 72%);
    height: 390px;
  }

  .orbit-one {
    width: 370px;
    height: 370px;
  }

  .orbit-two {
    width: 280px;
    height: 420px;
  }

  .orbit-three {
    width: 390px;
    height: 230px;
  }

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

@media (max-width: 860px) {
  .hero,
  .diagnosis-heading,
  .system,
  .section-title,
  .service-matrix,
  .team-grid,
  footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 32px;
    padding-top: 150px;
    padding-bottom: 58px;
  }

  .hero-stage {
    min-height: 470px;
    order: -1;
  }

  .card-a {
    left: 18px;
  }

  .card-b {
    right: 18px;
  }

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

  .system-visual {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .hero,
  .diagnosis,
  .system,
  .services,
  .proof,
  .team,
  .contact,
  footer {
    width: min(100% - 40px, 1180px);
  }

  .topbar {
    top: 14px;
    width: calc(100% - 28px);
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 0;
  }

  .brand img {
    width: 96px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    font-size: 0.68rem;
  }

  nav a {
    min-height: 22px;
    padding: 0 0 5px;
  }

  .nav-instagram {
    width: 22px;
    min-height: 22px;
    padding-bottom: 0;
  }

  .nav-instagram svg {
    width: 17px;
    height: 17px;
  }

  h1 {
    font-size: clamp(2.52rem, 11.2vw, 3.45rem);
    line-height: 1.02;
  }

  .hero {
    padding-top: 168px;
  }

  .diagnosis h2,
  .section-title h2,
  .proof h2,
  .contact h2,
  .system h2 {
    font-size: clamp(2rem, 9.2vw, 3rem);
    line-height: 1.08;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

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

  .hero-stage {
    min-height: 390px;
    border-radius: var(--radius-lg);
  }

  .hero-stage img {
    width: min(250px, 70%);
    height: 315px;
  }

  .orbit-one,
  .orbit-two,
  .orbit-three {
    width: 300px;
    height: 300px;
  }

  .orbit-two {
    width: 240px;
    height: 330px;
  }

  .orbit-three {
    width: 320px;
    height: 190px;
  }

  .metric-card {
    min-width: 118px;
    padding: 10px;
    border-radius: var(--radius-sm);
  }

  .card-a {
    top: 60px;
    left: 8px;
  }

  .card-b {
    right: 8px;
    bottom: 54px;
  }

  .metric-card strong {
    margin-top: 8px;
    font-size: 1rem;
  }

  .metric-card small {
    font-size: 0.68rem;
  }

  .diagnosis,
  .system,
  .services,
  .proof,
  .team,
  .contact {
    padding: 72px 0;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.94rem;
    line-height: 1.2;
  }

  .diagnosis-heading,
  .section-title {
    gap: 10px;
    margin-bottom: 32px;
  }

  .services .section-title {
    margin-bottom: 28px;
  }

  .diagnosis-grid article,
  .service-matrix article {
    min-height: auto;
    padding: 28px 18px;
  }

  .diagnosis-grid p,
  .service-matrix h3 {
    margin-top: 34px;
  }

  .service-matrix small,
  .diagnosis-grid span {
    font-size: 0.78rem;
  }

  .service-matrix h3 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.12;
  }

  .service-matrix p,
  .diagnosis-grid p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .diagnosis-grid {
    border-top: 1px solid rgba(111, 76, 60, 0.22);
    border-bottom: 1px solid rgba(111, 76, 60, 0.22);
  }

  .diagnosis-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(111, 76, 60, 0.14);
  }

  .diagnosis-grid article:last-child {
    border-bottom: 0;
  }

  .service-matrix {
    gap: 0;
    background: transparent;
    border-top: 1px solid rgba(111, 76, 60, 0.18);
  }

  .service-matrix article {
    border-bottom: 1px solid rgba(111, 76, 60, 0.18);
    background: rgba(243, 240, 234, 0.58);
  }

  .service-matrix article::before {
    top: 24px;
    right: 0;
  }

  .system-copy {
    order: -1;
  }

  .system-visual {
    position: relative;
    display: grid;
    min-height: 360px;
    place-items: center;
    padding: 32px 0 20px;
  }

  .system-visual::before,
  .system-visual::after {
    display: block;
    position: absolute;
    border: 1px solid rgba(111, 76, 60, 0.2);
    border-radius: 50%;
    content: "";
    pointer-events: none;
  }

  .system-visual::before {
    width: 280px;
    height: 280px;
    animation: rotateSlow 28s linear infinite;
  }

  .system-visual::after {
    width: 330px;
    height: 178px;
    transform: rotate(-24deg);
    animation: rotateReverse 34s linear infinite;
  }

  .core {
    width: 112px;
    height: 112px;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 50%;
    font-size: 2.35rem;
  }

  .system-visual span {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 13px;
    font-size: 0.72rem;
    line-height: 1;
    text-align: center;
  }

  .system-visual span:nth-child(2) {
    top: 54px;
    left: 18px;
  }

  .system-visual span:nth-child(3) {
    top: 78px;
    right: 16px;
  }

  .system-visual span:nth-child(4) {
    bottom: 70px;
    left: 12px;
  }

  .system-visual span:nth-child(5) {
    right: 46px;
    bottom: 36px;
  }

  .system-points {
    gap: 16px;
    margin-top: 24px;
  }

  .system-points strong {
    padding-top: 14px;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .team-grid div {
    padding: 20px;
  }

  .team-grid h3 {
    font-size: 2rem;
  }

  .team-grid p {
    font-size: 0.95rem;
  }

  .proof-copy {
    margin-bottom: 40px;
  }

  .contact h2 {
    margin-bottom: 28px;
  }

  .instagram-link {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    margin-left: 0;
  }

  .contact div {
    border-radius: var(--radius-lg);
    padding: 44px 22px;
  }

  .start-card::before {
    display: none;
  }

  .start-flow {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .start-flow::before {
    display: none;
  }

  .start-flow i {
    display: none;
  }

  .start-flow i::after {
    transform: translateY(-100%);
  }

  .start-card.is-visible .start-flow i::after {
    animation: flowLineDown 2200ms ease-in-out infinite;
  }

  .start-flow i::before {
    top: auto;
    right: 50%;
    bottom: 0;
    transform: translateX(50%) rotate(135deg);
  }

  .brand-strip {
    padding: 14px 0;
    mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
  }

  .brand-track {
    gap: 34px;
    animation-duration: 28s;
  }

  .brand-track img {
    width: 118px;
    height: 58px;
  }

  footer {
    gap: 12px;
  }

  .whatsapp-widget {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-widget svg {
    width: 29px;
  }
}

@keyframes flowLineDown {
  to {
    transform: translateY(0);
  }
}

@keyframes flowPulseDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }

  36% {
    opacity: 0.5;
  }

  72%,
  100% {
    opacity: 0;
    transform: translateX(-50%) scaleY(1);
  }
}

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