:root {
  --bg: #1e1f22;
  --surface: #2a2c30;
  --surface-soft: #24262a;
  --text: #f1f2f4;
  --muted: #b2b6bc;
  --accent: #f47a1f;
  --accent-dark: #cd5f0d;
  --line: #3a3e44;
  --radius-lg: 26px;
  --radius-md: 16px;
  --shadow: 0 24px 62px rgba(5, 5, 7, 0.46);
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 86% 0%, rgba(244, 122, 31, 0.2) 0 14%, transparent 38%),
    radial-gradient(circle at 10% 78%, rgba(244, 122, 31, 0.12) 0 16%, transparent 44%),
    linear-gradient(140deg, #212327 0%, #1a1c20 45%, #26292d 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.6;
}

body::before {
  width: min(42vw, 460px);
  aspect-ratio: 1;
  top: -12vh;
  left: -8vw;
  background: radial-gradient(circle, rgba(244, 122, 31, 0.28), rgba(244, 122, 31, 0));
  animation: driftA 16s ease-in-out infinite alternate;
}

body::after {
  width: min(36vw, 390px);
  aspect-ratio: 1;
  right: -8vw;
  top: 36vh;
  background: radial-gradient(circle, rgba(115, 121, 134, 0.16), rgba(66, 61, 56, 0));
  animation: driftB 20s ease-in-out infinite;
}

@keyframes driftA {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(48px, 24px, 0) scale(1.08);
  }
}

@keyframes driftB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-36px, -26px, 0) scale(1.06);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(24, 26, 29, 0.78);
  border-bottom: 1px solid rgba(72, 76, 84, 0.7);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.2rem;
  transition: min-height 220ms ease, padding 220ms ease, gap 220ms ease;
}

.brand {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: font-size 220ms ease, letter-spacing 220ms ease;
}

.brand span {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 122, 31, 0), rgba(244, 122, 31, 1), rgba(244, 122, 31, 0));
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 220ms ease, transform 220ms ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(244, 122, 31, 0.2);
  transform: translateY(-1px);
}

nav a:hover::after,
nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

nav a.is-active {
  color: #ffe3cc;
  background: linear-gradient(120deg, rgba(244, 122, 31, 0.34), rgba(244, 122, 31, 0.18));
  box-shadow: inset 0 0 0 1px rgba(244, 122, 31, 0.32), 0 8px 18px rgba(244, 122, 31, 0.18);
}

.hero {
  padding: clamp(4rem, 7vw, 6.6rem) 0 3.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.3rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card::before,
.service::before,
.project::before,
.step::before,
.contact::after,
.feature::before {
  content: "";
  position: absolute;
  inset: -140% -30%;
  background: linear-gradient(115deg, rgba(244, 122, 31, 0) 38%, rgba(244, 122, 31, 0.14) 49%, rgba(255, 255, 255, 0) 62%);
  transform: translate3d(-36%, -16%, 0) rotate(8deg);
  animation: sheenMove 12s linear infinite;
  pointer-events: none;
}

.card::before {
  animation-delay: -2s;
}

.service::before {
  animation-delay: -5s;
}

.project::before {
  animation-delay: -7s;
}

.step::before {
  animation-delay: -9s;
}

.feature::before {
  animation-delay: -4s;
}

.contact::after {
  animation-delay: -6s;
}

.hero-main {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  background:
    linear-gradient(164deg, #32353b 0%, #25282d 100%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(244, 122, 31, 0.28);
  background: rgba(244, 122, 31, 0.16);
  color: #ffbb86;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  display: inline-block;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 15ch;
  text-wrap: balance;
  padding-bottom: 0.35rem;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08rem;
  width: clamp(96px, 30%, 180px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 122, 31, 0.95), rgba(244, 122, 31, 0.2));
}

.lead {
  margin-top: 1.1rem;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
}

.cta-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  border: 0;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.76rem 1.12rem;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent) 0%, #ff9c4f 100%);
  color: #1d1d1a;
  box-shadow: 0 12px 26px rgba(226, 121, 35, 0.36);
}

.btn.primary:hover {
  box-shadow: 0 16px 30px rgba(226, 121, 35, 0.42);
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.hero-side {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(160deg, #30333a 0%, #262930 100%);
}

.feature {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(44, 47, 54, 0.86);
  padding: 1rem;
}

.feature strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  color: #f7f8fa;
  display: block;
  margin-bottom: 0.2rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 2.2rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

h2 {
  position: relative;
  display: inline-block;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #f8f9fb;
  font-size: clamp(1.42rem, 3.2vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 15ch;
  text-wrap: balance;
  padding-bottom: 0.3rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08rem;
  width: clamp(70px, 36%, 140px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 122, 31, 0.9), rgba(244, 122, 31, 0));
}

.section-note {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 43ch;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.service {
  position: relative;
  overflow: hidden;
  padding: 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 170px;
}

.service h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #f8f9fb;
  font-size: 1.06rem;
  margin-bottom: 0.45rem;
}

.service p {
  color: var(--muted);
  font-size: 0.93rem;
}

.service b {
  color: #ffb172;
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.project {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.tile {
  height: 180px;
  background:
    linear-gradient(145deg, rgba(35, 37, 41, 0.8), rgba(19, 20, 23, 0.62)),
    linear-gradient(130deg, #5f646f 0%, #878d99 46%, #4a505b 100%);
  position: relative;
  overflow: hidden;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0 6px,
    rgba(255, 255, 255, 0) 6px 16px
  );
  mix-blend-mode: soft-light;
  opacity: 0.45;
}

.project-meta {
  padding: 0.95rem;
}

.project-meta h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #f8f9fb;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.project-meta p {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.step {
  overflow: hidden;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  position: relative;
}

.step .nr {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(244, 122, 31, 0.24);
  color: #ffd3b2;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #f8f9fb;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact {
  margin: 2rem 0 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, #1f2126 0%, #15171b 55%, #2a241f 100%);
  color: #f5f5f3;
  padding: clamp(1.4rem, 3.6vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 122, 31, 0.52), rgba(244, 122, 31, 0));
  right: -120px;
  top: -120px;
  pointer-events: none;
}

.contact h2 {
  max-width: 22ch;
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  margin-top: 0.6rem;
}

.contact .btn {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

footer {
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(90, 95, 104, 0.35);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-main,
.hero-side,
.feature,
.service,
.project,
.step,
.contact,
footer {
  will-change: transform;
}

.service,
.project,
.step,
.feature,
.hero-main,
.hero-side,
.contact {
  transition: box-shadow 280ms ease, border-color 280ms ease;
}

.motion-item {
  transform: translate3d(0, 0, 0);
}

.motion-item.is-motion-active {
  animation: floatViewport 4.8s ease-in-out infinite;
  animation-delay: var(--motion-delay, 0ms);
  border-color: rgba(244, 122, 31, 0.4);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(244, 122, 31, 0.16);
}

.motion-item:hover {
  animation: none;
  transform: translate3d(0, -10px, 0) scale(1.02);
  border-color: rgba(244, 122, 31, 0.58);
  box-shadow: 0 28px 66px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(244, 122, 31, 0.3), 0 0 28px rgba(244, 122, 31, 0.22);
}

.motion-item:hover::before,
.motion-item:hover::after {
  animation-duration: 4.6s;
  opacity: 0.72;
}

.service:hover h3,
.project:hover h3,
.step:hover h3,
.feature:hover strong {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(244, 122, 31, 0.2);
}

.project .tile,
.hero-main,
.hero-side,
.service,
.feature,
.step,
.contact {
  transform-origin: center;
}

.project:hover .tile {
  transform: scale(1.05) rotate(-0.4deg);
  filter: saturate(1.15) contrast(1.08);
}

.project .tile {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
}

.project:hover .tile::after {
  opacity: 0.68;
}

.btn:hover,
nav a:hover {
  filter: saturate(1.08);
}

@keyframes floatViewport {
  0% {
    transform: translate3d(0, 0px, 0) rotateZ(0deg);
  }

  35% {
    transform: translate3d(0, -7px, 0) rotateZ(-0.6deg);
  }

  70% {
    transform: translate3d(0, 5px, 0) rotateZ(0.5deg);
  }

  100% {
    transform: translate3d(0, 0px, 0) rotateZ(0deg);
  }
}

@keyframes sheenMove {
  0% {
    transform: translate3d(-38%, -16%, 0) rotate(8deg);
    opacity: 0;
  }

  10% {
    opacity: 0.45;
  }

  55% {
    opacity: 0.22;
  }

  100% {
    transform: translate3d(42%, 16%, 0) rotate(8deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 380px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.6rem 0;
    min-height: 62px;
    gap: 0.7rem;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.55rem;
    transition: gap 220ms ease;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.34rem 0.56rem;
  }

  .top.is-compact .top-inner {
    min-height: 48px;
    gap: 0.45rem;
    padding: 0.35rem 0;
  }

  .top.is-compact .brand {
    font-size: 1.02rem;
    letter-spacing: 0.03em;
  }

  .top.is-compact nav {
    gap: 0.4rem;
  }

  .top.is-compact nav a {
    font-size: 0.82rem;
    padding: 0.26rem 0.48rem;
  }

  .top.is-compact nav a::after {
    bottom: 3px;
  }

  .hero {
    padding-top: 2.4rem;
  }

  h1 {
    max-width: 100%;
  }

  .services,
  .projects,
  .timeline {
    grid-template-columns: 1fr;
  }

  .tile {
    height: 160px;
  }

  .contact {
    margin-bottom: 2.2rem;
  }

  footer {
    font-size: 0.85rem;
  }
}
