:root {
  --bg: #141414;
  --bg-soft: #191919;
  --text: #f2f1ed;
  --muted: #aaa9a4;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --radius: 24px;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.025), transparent 28%),
    linear-gradient(180deg, #161616 0%, #121212 100%);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 92%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner,
.page {
  width: min(calc(100% - 72px), var(--content-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 24px;
}

.brand {
  color: #f2f1ed;
}

.brand-word {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.34em;
  line-height: 1;
}

.brand-letter {
  display: inline-block;
}

.brand-o-letter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.24em;
}

.brand-o-letter::after {
  content: "";
  position: absolute;
  width: 0.58em;
  top: 47%;
  left: 47%;
  height: 1.5px;
  background: #f2f1ed;
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-link {
  color: #dbd8d1;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page {
  padding: 0 0 96px;
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 78vh;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: #080b10 url("assets/placeholders/sky-first-frame.jpg") center / cover no-repeat;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #020304;
  opacity: 0;
  z-index: 1;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(calc(var(--parallax-shift, 0px) * 0.42)) scale(1.04);
  transition: transform 240ms ease-out;
}

.hero-fallback {
  display: none;
  pointer-events: none;
}

.js .hero-fallback {
  display: block;
  opacity: 1;
  transition:
    opacity 420ms ease,
    transform 240ms ease-out;
}

.js .hero-media::after {
  opacity: 1;
  animation: hero-intro-fade 2500ms ease-out 80ms forwards;
}

.js .hero-media.is-video-ready .hero-fallback {
  opacity: 0;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.64)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.24));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(calc(100% - 72px), var(--content-width));
  min-height: 78vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  padding: 78px 0 72px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  color: #d5d1ca;
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.cta h2,
.service-card h2,
.project-copy h3 {
  font-family: "Sora", sans-serif;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 6.6rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1.is-typing::after,
.hero h1.is-complete::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.88em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: rgba(242, 241, 237, 0.92);
}

.hero h1.is-typing::after {
  animation: caret-blink 0.82s steps(1) infinite;
}

.hero h1.is-complete::after {
  animation: caret-fade 1.2s ease forwards;
}

.hero p {
  max-width: 40rem;
  margin: 24px 0 0;
  color: #d2cec7;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 182px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: #f2f1ed;
  color: #141414;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
  color: #f1efea;
}

.services,
.projects,
.cta {
  width: 100%;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 72px;
}

.service-card {
  min-height: 0;
  padding: 0 18px 0 0;
  border: 0;
  background: transparent;
  transition:
    opacity 700ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:not(:first-child) {
  border-left: 1px solid var(--line-soft);
  padding-left: 28px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
}

.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

.service-card h2 {
  margin: 24px 0 12px;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 0;
  max-width: 18ch;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.6;
}

.projects {
  padding-top: 96px;
}

.growth-services {
  padding-top: 102px;
}

.growth-head {
  align-items: center;
  text-align: center;
  margin-bottom: 38px;
}

.growth-head .section-title {
  max-width: 16ch;
}

.section-copy {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

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

.growth-card {
  min-height: 212px;
  padding: 24px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: transparent;
  transition:
    opacity 700ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease;
}

.growth-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.growth-card h3 {
  margin: 18px 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.growth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
}

.growth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.growth-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-icon .filled {
  fill: currentColor;
  stroke: none;
}

.email-icon {
  color: #f3f3f3;
}

.email-icon .alert-dot {
  fill: #ff5549;
  stroke: none;
}

.strategy-icon {
  color: #f3f3f3;
}

.production-icon {
  color: #b8ecff;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

.section-head .eyebrow,
.cta .eyebrow {
  margin-bottom: 0;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -0.05em;
}

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

.project-card {
  border: 0;
  background: transparent;
  transition:
    opacity 700ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-image {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  aspect-ratio: 415 / 220;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transform: translateY(calc(var(--parallax-shift, 0px) * 0.18)) scale(1.045);
  transition: transform 240ms ease-out;
}

.project-copy {
  padding: 14px 2px 0;
}

.project-copy h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.project-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 104px;
  text-align: center;
}

.cta h2 {
  max-width: 14ch;
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.cta-button {
  min-width: 220px;
  margin-top: 30px;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(22, 22, 22, 0.94);
}

.floating-whatsapp img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.floating-whatsapp-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff5549;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(255, 85, 73, 0.28);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-item {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.js .reveal-item {
  opacity: 0;
  transform: translateY(22px);
}

.js .is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.js .services.is-visible .service-card:nth-child(1),
.js .projects.is-visible .project-card:nth-child(1) {
  transition-delay: 70ms;
}

.js .services.is-visible .service-card:nth-child(2),
.js .projects.is-visible .project-card:nth-child(2) {
  transition-delay: 140ms;
}

.js .services.is-visible .service-card:nth-child(3),
.js .projects.is-visible .project-card:nth-child(3) {
  transition-delay: 210ms;
}

.js .services.is-visible .service-card:nth-child(4),
.js .projects.is-visible .project-card:nth-child(4),
.js .growth-services.is-visible .growth-card:nth-child(4) {
  transition-delay: 280ms;
}

.js .growth-services.is-visible .growth-card:nth-child(1) {
  transition-delay: 60ms;
}

.js .growth-services.is-visible .growth-card:nth-child(2) {
  transition-delay: 120ms;
}

.js .growth-services.is-visible .growth-card:nth-child(3) {
  transition-delay: 180ms;
}

.js .growth-services.is-visible .growth-card:nth-child(5) {
  transition-delay: 340ms;
}

.js .growth-services.is-visible .growth-card:nth-child(6) {
  transition-delay: 400ms;
}

.js .growth-services.is-visible .growth-card:nth-child(7) {
  transition-delay: 460ms;
}

.js .growth-services.is-visible .growth-card:nth-child(8) {
  transition-delay: 520ms;
}

.hero-video:not([src]),
.hero-video[src=""] {
  display: none;
}

.hero-video:not([src]) + .hero-fallback,
.hero-video[src=""] + .hero-fallback {
  display: block;
}

@media (max-width: 980px) {
  .header-inner,
  .page,
  .hero-content {
    width: min(calc(100% - 40px), var(--content-width));
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .section-head,
  .service-card,
  .growth-card,
  .project-copy {
    text-align: center;
  }

  .section-head {
    align-items: center;
  }

  .hero p,
  .section-copy,
  .service-card p,
  .cta h2 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .service-icon,
  .growth-icon {
    margin-inline: auto;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

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

  .service-card:nth-child(3),
  .service-card:nth-child(4) {
    border-top: 1px solid var(--line-soft);
    padding-top: 24px;
  }

  .project-grid {
    gap: 28px 20px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 22px 0 20px;
  }

  .brand {
    letter-spacing: normal;
  }

  .brand-word {
    font-size: 17px;
    gap: 0.16em;
    letter-spacing: 0.28em;
  }

  .contact-link,
  .eyebrow {
    font-size: 11px;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero p {
    font-size: 0.96rem;
  }

  .services,
  .project-grid,
  .growth-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:not(:first-child) {
    border: 0;
    padding: 0;
  }

  .service-card:not(:first-child) {
    border-top: 1px solid var(--line-soft);
    padding-top: 22px;
  }

  .projects {
    padding-top: 72px;
  }

  .growth-services {
    padding-top: 78px;
  }

  .cta {
    padding-top: 84px;
  }

  .cta h2 {
    max-width: 11ch;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 62px;
    height: 62px;
  }

  .floating-whatsapp img {
    width: 34px;
    height: 34px;
  }

  .floating-whatsapp-badge {
    top: 5px;
    right: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .hero-video {
    display: none;
  }

  .hero-fallback {
    display: block;
  }

  .hero h1.is-typing::after,
  .hero h1.is-complete::after {
    display: none;
    animation: none !important;
  }

  .hero-video,
  .hero-fallback,
  .project-image img {
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes caret-fade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes hero-intro-fade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
