:root {
  --bg: #0e1116;
  --bg-soft: #131820;
  --bg-panel: #171d26;
  --bg-panel-strong: #1b212b;
  --text: #ffffff;
  --muted: #8a909c;
  --muted-light: rgba(255, 255, 255, 0.76);
  --accent: #f0ab2f;
  --accent-dark: #2d220c;
  --line: rgba(255, 255, 255, 0.08);
  --container: 1170px;
  --container-wide: 1260px;
  --transition: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 24px;
  background: var(--bg);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition),
    border-color var(--transition), opacity var(--transition),
    transform var(--transition);
}

button {
  font: inherit;
}

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

.container-wide {
  width: min(calc(100% - 32px), var(--container-wide));
}

.wrapper {
  overflow: clip;
}

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: #0b0d11;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.thecube {
  position: relative;
  width: 42px;
  height: 42px;
  transform: rotateZ(45deg);
}

.cube {
  position: relative;
  float: left;
  width: 50%;
  height: 50%;
  transform: scale(1.1);
}

.cube::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: cubeFold 2.4s infinite linear both;
  transform-origin: 100% 100%;
}

.c2 {
  transform: scale(1.1) rotateZ(90deg);
}

.c3 {
  transform: scale(1.1) rotateZ(180deg);
}

.c4 {
  transform: scale(1.1) rotateZ(270deg);
}

.c2::before {
  animation-delay: 0.3s;
}

.c3::before {
  animation-delay: 0.6s;
}

.c4::before {
  animation-delay: 0.9s;
}

@keyframes cubeFold {
  0%,
  10% {
    transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  }
  25%,
  75% {
    transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  }
  90%,
  100% {
    transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}

.site-header {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.35s ease, background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-sticky {
  top: 0;
  background: rgba(14, 17, 22, 0.94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto 44px;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
}

.logo {
  padding: 24px 0;
}

.logo-word {
  display: block;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.desktop-nav a {
  padding: 30px 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--accent);
}

.header-cta {
  justify-self: end;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  position: relative;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-btn span {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 2px;
  background: #ffffff;
}

.mobile-menu-btn span:first-child {
  top: 17px;
}

.mobile-menu-btn span:last-child {
  top: 25px;
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1100;
  width: min(320px, 100%);
  padding: 28px 26px 40px;
  background: rgba(14, 17, 22, 0.98);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.35);
}

.mobile-close {
  margin-left: auto;
  margin-bottom: 30px;
  display: block;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  gap: 14px;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.055) 0%, transparent 34%),
    linear-gradient(180deg, rgba(240, 171, 47, 0.08) 0%, transparent 32%),
    linear-gradient(180deg, #1a212b 0%, #11161d 58%, #0e1116 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.08;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 88%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.04) 54%, transparent 74%),
    linear-gradient(180deg, rgba(240, 171, 47, 0.09) 0%, rgba(240, 171, 47, 0.02) 18%, rgba(240, 171, 47, 0) 46%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 34%, transparent 68%, rgba(255, 255, 255, 0.02) 100%);
  opacity: 0.55;
}

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

.hero-pattern::before {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 24%);
  opacity: 0.55;
}

.hero-pattern::after {
  background:
    linear-gradient(140deg, transparent 0%, rgba(240, 171, 47, 0.08) 44%, transparent 78%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 52%, transparent 100%);
  filter: blur(34px);
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 160px 0 240px;
}

.hero-shell {
  max-width: 860px;
}

.hero-badge,
.section-kicker h2,
.section-title h2,
.footer-contact h6 {
  margin: 0;
  text-transform: uppercase;
}

.hero-badge {
  color: #e2c188;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.hero-title {
  margin: 24px auto 0;
  font-size: 74px;
  line-height: 78px;
  font-weight: 700;
}

.hero-text {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted-light);
  font-size: 20px;
  line-height: 35px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.hero-button,
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-button {
  background: var(--accent);
  color: #111111;
}

.hero-button:hover {
  transform: translateY(-2px);
}

.hero-link {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-note {
  max-width: 640px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.hero-contact-bar {
  position: absolute;
  bottom: 52px;
  left: 0;
  z-index: 3;
  width: 100%;
}

.hero-contact-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hero-contact-card {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 17, 22, 0.58);
  backdrop-filter: blur(10px);
  text-align: left;
}

.hero-contact-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-contact-card strong {
  display: block;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.why-section {
  position: relative;
  z-index: 4;
  margin-top: -160px;
}

.why-panel {
  padding: 96px 90px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-kicker,
.section-title {
  margin-bottom: 72px;
  text-align: center;
}

.section-kicker h2,
.section-title h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-lead {
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 32px;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 50px;
}

.why-heading {
  padding-right: 30px;
  text-align: right;
}

.why-heading h3 {
  margin: 0;
  font-size: 36px;
  line-height: 50px;
  font-weight: 700;
}

.why-list {
  padding-bottom: 20px;
}

.why-item {
  margin-bottom: 44px;
}

.why-item:last-child {
  margin-bottom: 0;
}

.why-item h4 {
  position: relative;
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
  transition: padding-left var(--transition);
}

.why-item h4::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity var(--transition);
}

.why-item:hover h4 {
  padding-left: 38px;
}

.why-item:hover h4::before {
  opacity: 1;
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
}

.services-section {
  padding: 130px 0 0;
}

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

.service-card {
  padding: 38px 34px 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  transition: transform var(--transition), border-color var(--transition),
    background-color var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 171, 47, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.service-number {
  display: inline-block;
  margin-bottom: 20px;
  color: #e2c188;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.service-card h3 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 35px;
  font-weight: 700;
}

.service-card p {
  margin: 0 0 26px;
  color: var(--muted);
}

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.projects-section {
  padding: 130px 0 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-soft);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 171, 47, 0.28);
}

.project-image {
  overflow: hidden;
}

.project-image img {
  height: 360px;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-copy {
  padding: 28px 28px 30px;
}

.project-copy p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
}

.process-section {
  padding: 130px 0;
}

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

.process-card {
  padding: 34px 28px 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: transform var(--transition), border-color var(--transition),
    background-color var(--transition);
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 171, 47, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.process-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: #e2c188;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.process-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
}

.process-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  position: relative;
}

.footer-data {
  padding: 180px 0 70px;
  background: var(--accent);
  text-align: center;
}

.footer-contact {
  margin-bottom: 140px;
}

.footer-contact h6 {
  margin-bottom: 20px;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-contact h2 {
  margin: 0 0 26px;
  color: #000000;
  font-size: 58px;
  line-height: 1.1;
  font-weight: 700;
}

.footer-contact h3 {
  margin: 0 0 14px;
  color: #000000;
  font-size: 22px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 25px;
}

.footer-links a {
  position: relative;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent-dark);
  opacity: 0;
  transition: width var(--transition), left var(--transition),
    opacity var(--transition);
}

.footer-links a:hover::before {
  left: 0;
  width: 100%;
  opacity: 1;
}

.footer-copy p {
  margin: 0;
  color: #000000;
  font-size: 14px;
}

.pixelshark-credit {
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: heroRise 0.9s ease forwards;
}

.hero-title.hero-reveal {
  animation-delay: 0.18s;
}

.hero-text.hero-reveal {
  animation-delay: 0.32s;
}

.hero-actions.hero-reveal {
  animation-delay: 0.46s;
}

.hero-note.hero-reveal {
  animation-delay: 0.58s;
}

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .hero-title {
    font-size: 64px;
    line-height: 68px;
  }

  .hero-text {
    font-size: 18px;
    line-height: 31px;
  }

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

  .service-card:last-child,
  .project-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .header-bar {
    grid-template-columns: auto 1fr auto;
  }

  .mobile-menu-btn {
    display: block;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

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

@media (max-width: 991px) {
  .site-header {
    top: 0;
    background: rgba(14, 17, 22, 0.92);
  }

  .header-bar {
    padding: 18px 24px;
  }

  .logo {
    padding: 0;
  }

  .hero-content {
    padding-top: 150px;
    padding-bottom: 220px;
  }

  .hero-title {
    font-size: 52px;
    line-height: 58px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 28px;
  }

  .hero-contact-inner,
  .why-grid,
  .service-grid,
  .projects-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .why-section {
    margin-top: 0;
  }

  .why-panel {
    padding: 90px 34px 0;
  }

  .why-heading {
    padding-right: 0;
    text-align: left;
  }

  .service-card:last-child,
  .project-card:last-child {
    grid-column: auto;
  }

  .footer-contact h2 {
    font-size: 44px;
  }
}

@media (max-width: 767px) {
  .container,
  .container-wide {
    width: min(calc(100% - 24px), var(--container));
  }

  .logo-word {
    font-size: 20px;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: auto;
  }

  .hero-pattern {
    inset: 0;
  }

  .hero-badge {
    letter-spacing: 0.2em;
  }

  .hero-title {
    font-size: 42px;
    line-height: 48px;
  }

  .hero-text,
  .section-lead {
    font-size: 15px;
    line-height: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-contact-bar {
    bottom: 26px;
  }

  .hero-contact-card strong {
    font-size: 16px;
    line-height: 24px;
  }

  .section-kicker,
  .section-title {
    margin-bottom: 50px;
  }

  .why-heading h3 {
    font-size: 28px;
    line-height: 40px;
  }

  .why-item h4,
  .service-card h3,
  .project-copy h3,
  .process-card h3 {
    font-size: 22px;
    line-height: 32px;
  }

  .project-image img {
    height: 300px;
  }

  .footer-data {
    padding: 110px 0 60px;
  }

  .footer-contact {
    margin-bottom: 70px;
  }

  .footer-contact h2 {
    font-size: 34px;
  }

  .footer-contact h3 {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 576px) {
  .mobile-menu {
    width: 100%;
  }

  .hero-content {
    padding-bottom: 150px;
  }

  .hero-contact-bar {
    display: none;
  }

  .hero-title {
    font-size: 36px;
    line-height: 42px;
  }

  .why-panel {
    padding: 78px 22px 0;
  }

  .why-heading h3 {
    font-size: 22px;
    line-height: 32px;
  }

  .service-card,
  .project-copy,
  .process-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .project-image img {
    height: 250px;
  }

  .footer-links {
    gap: 14px;
  }

  .footer-links a,
  .footer-copy p {
    font-size: 12px;
  }
}
