:root {
  --bg: #050302;
  --bg-soft: #100704;
  --copper: #ff6a00;
  --copper-2: #ff8f2d;
  --ember: #b63a00;
  --text: #fff8f1;
  --muted: #d9bba7;
  --dim: #8d6956;
  --line: rgba(255, 116, 25, 0.24);
  --glass: rgba(12, 5, 2, 0.48);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --max: 1580px;
  --header-h: 92px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::selection {
  background: var(--copper);
  color: #160600;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  transition: height 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  top: 12px;
  height: 68px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(255, 126, 31, 0.18);
  background: rgba(5, 3, 2, 0.62);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 1px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}

.site-header.is-scrolled .brand {
  font-size: 2rem;
}

.brand sup {
  color: var(--copper);
  font-size: 0.38em;
  margin-top: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  min-width: 136px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 106, 0, 0.72);
  border-radius: 999px;
  color: var(--copper);
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.nav-cta:hover {
  background: var(--copper);
  color: #130600;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 126, 31, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #090301;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 42%, rgba(255, 111, 21, 0.08), transparent 24%),
    linear-gradient(90deg, rgba(3, 0, 0, 0.78) 0%, rgba(8, 2, 0, 0.4) 44%, rgba(0, 0, 0, 0.08) 73%),
    linear-gradient(0deg, #030100 0%, rgba(0, 0, 0, 0) 32%);
}

.star-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 220, 174, 0.88) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(255, 107, 19, 0.7) 0 1px, transparent 1.3px);
  background-size: 140px 110px, 220px 170px;
  animation: driftStars 28s linear infinite;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding-top: var(--header-h);
}

.hero-copy {
  width: min(760px, 52vw);
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
}

.hero-copy.is-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.hero h1 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(4.2rem, 6.2vw, 6.2rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--copper);
}

.hero p {
  max-width: 780px;
  margin: 24px 0 32px;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: #fff;
}

.primary-cta,
.secondary-cta,
.form-submit {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 106, 0, 0.8);
  border-radius: 999px;
  padding: 0 34px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--copper-2);
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.primary-cta:hover,
.secondary-cta:hover,
.form-submit:hover {
  transform: translateY(-2px);
  background: var(--copper);
  color: #140600;
  box-shadow: 0 18px 44px rgba(255, 106, 0, 0.24);
}

.hero-dots {
  display: flex;
  gap: 18px;
  margin-top: 118px;
}

.hero-dots button {
  width: 25px;
  height: 25px;
  border: 7px solid rgba(255, 106, 0, 0.5);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.hero-dots button.is-active {
  border-color: var(--copper);
  transform: scale(1.08);
}

.whatsapp {
  position: fixed;
  right: clamp(20px, 3vw, 46px);
  bottom: clamp(20px, 3vw, 42px);
  z-index: 45;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 7px solid #fff;
  border-radius: 50%;
  background: #08c755;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  transition: transform 0.25s var(--ease);
}

.whatsapp::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -6px;
  width: 19px;
  height: 19px;
  background: #08c755;
  clip-path: polygon(0 100%, 100% 0, 72% 100%);
  border-left: 5px solid #fff;
}

.whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
}

.whatsapp svg {
  width: 44px;
  height: 44px;
  fill: #fff;
}

.section-band {
  position: relative;
  padding: clamp(92px, 11vw, 150px) 0;
  background: var(--bg);
}

section[id] {
  scroll-margin-top: 108px;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 106, 0, 0.12), transparent 26%),
    radial-gradient(circle at 82% 80%, rgba(255, 139, 55, 0.09), transparent 28%);
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section-label {
  margin: 0 0 18px;
  color: var(--copper-2);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 5.2vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.intro {
  background:
    linear-gradient(180deg, #050302 0%, #0b0402 54%, #050302 100%);
}

.intro-grid,
.split-section,
.portfolio-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.intro-text p,
.portfolio-copy p,
.split-section p,
.contact-copy p {
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.75;
}

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

.stats span {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.stats strong {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  line-height: 1;
}

.showcase {
  position: relative;
  min-height: 170vh;
  background: #030100;
}

.showcase-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.showcase-sticky::before,
.showcase-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.showcase-sticky::before {
  background:
    radial-gradient(circle at center, rgba(255, 106, 0, 0.22), transparent 24%),
    radial-gradient(circle at center, transparent 0 22%, rgba(0, 0, 0, 0.72) 58%, #030100 100%);
}

.showcase-sticky::after {
  background-image: linear-gradient(rgba(255, 106, 0, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 106, 0, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000, transparent 64%);
}

.planet-system {
  position: absolute;
  width: min(74vw, 790px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translateY(var(--parallax, 0));
}

.core {
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, #fff8e4 0 5%, #ffb56a 8%, #ff6a00 28%, #5b1800 62%, #100300 100%);
  box-shadow: 0 0 80px rgba(255, 106, 0, 0.45), inset -26px -34px 60px rgba(0, 0, 0, 0.45);
}

.orbit {
  position: absolute;
  inset: var(--orbit-inset);
  border: 1px solid rgba(255, 142, 44, 0.28);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}

.orbit i {
  position: absolute;
  top: 9%;
  left: 18%;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--copper-2);
  box-shadow: 0 0 28px rgba(255, 106, 0, 0.8);
}

.orbit-a {
  --orbit-inset: 7%;
}

.orbit-b {
  --orbit-inset: 22%;
  animation-duration: 13s;
  animation-direction: reverse;
}

.orbit-c {
  --orbit-inset: 35%;
  animation-duration: 9s;
}

.showcase-copy {
  position: relative;
  z-index: 2;
  width: min(830px, calc(100% - 48px));
  text-align: center;
}

.showcase-copy p {
  width: min(620px, 100%);
  margin: 26px auto 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.65;
}

.section-heading {
  width: min(840px, 100%);
  margin-bottom: clamp(42px, 6vw, 78px);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.08), rgba(255, 255, 255, 0.01) 44%, rgba(0, 0, 0, 0.16));
  transition: transform 0.32s var(--ease), background 0.32s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.16), rgba(255, 255, 255, 0.02) 42%, rgba(0, 0, 0, 0.2));
}

.service-card span,
.case-card span,
.timeline-item span {
  color: var(--copper-2);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card p,
.case-card p,
.timeline-item p {
  margin: 20px 0 0;
  line-height: 1.6;
}

.portfolio {
  background: linear-gradient(180deg, #050302 0%, #140702 42%, #050302 100%);
}

.portfolio-copy {
  align-self: start;
  position: sticky;
  top: 130px;
}

.portfolio-copy p:last-child {
  margin-top: 28px;
}

.case-rail {
  display: grid;
  gap: 18px;
}

.case-card {
  min-height: 230px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.18), rgba(255, 255, 255, 0.03) 36%, rgba(0, 0, 0, 0.18)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.case-card h3 {
  margin-top: 48px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-item {
  min-height: 310px;
  padding: 34px 26px;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
}

.careers {
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.16), transparent 38%),
    #070302;
}

.split-section > div:last-child {
  display: grid;
  justify-items: start;
  gap: 28px;
}

.contact {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 0;
  overflow: hidden;
  background: #030100;
}

.contact-bg {
  position: absolute;
  inset: -10% -20% auto;
  height: 70%;
  background:
    radial-gradient(circle at 68% 36%, rgba(255, 106, 0, 0.32), transparent 24%),
    linear-gradient(135deg, transparent 0 46%, rgba(255, 106, 0, 0.18) 46% 52%, transparent 52%);
  filter: blur(0.2px);
}

.contact-copy h2 {
  font-size: clamp(3rem, 6.5vw, 7rem);
}

.contact-copy p {
  margin-top: 26px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255, 126, 31, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.14);
}

.contact-form select option {
  color: #100400;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--dim);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  min-height: 112px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  color: #fff;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@keyframes driftStars {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 140px 110px, -220px 170px;
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1060px) {
  :root {
    --header-h: 78px;
  }

  .site-header {
    width: min(var(--max), calc(100% - 32px));
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 61;
  }

  .main-nav {
    position: fixed;
    top: 12px;
    right: 0;
    width: min(360px, calc(100vw - 32px));
    display: grid;
    gap: 0;
    padding: 78px 18px 18px;
    border: 1px solid rgba(255, 126, 31, 0.2);
    border-radius: 8px;
    background: rgba(5, 3, 2, 0.88);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 16px 10px;
  }

  .nav-cta {
    margin-top: 10px;
    width: 100%;
  }

  .hero-copy {
    width: min(720px, 70vw);
  }

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

  .timeline-item {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .site-header,
  .section-inner,
  .hero-content,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header.is-scrolled {
    padding: 0 12px 0 16px;
  }

  .brand,
  .site-header.is-scrolled .brand {
    font-size: 1.7rem;
  }

  .hero {
    min-height: 100svh;
    align-items: end;
    padding-bottom: 86px;
  }

  .hero-bg img {
    object-position: 63% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 0, 0, 0.8) 0%, rgba(8, 2, 0, 0.32) 72%, rgba(0, 0, 0, 0.2)),
      linear-gradient(0deg, #030100 0%, rgba(0, 0, 0, 0) 46%);
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 11.8vw, 3.45rem);
    line-height: 0.96;
  }

  .hero p {
    max-width: 480px;
    font-size: clamp(1.2rem, 6vw, 1.65rem);
  }

  .hero-dots {
    margin-top: 54px;
  }

  .whatsapp {
    width: 64px;
    height: 64px;
    border-width: 6px;
  }

  .whatsapp svg {
    width: 36px;
    height: 36px;
  }

  .intro-grid,
  .split-section,
  .portfolio-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-copy {
    position: static;
  }

  .stats,
  .service-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline-item {
    min-height: 220px;
  }

  .timeline-item,
  .timeline-item:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .planet-system {
    width: 120vw;
    opacity: 0.78;
  }

  .showcase-copy {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@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;
  }
}
