:root {
  --bg: #081120;
  --bg-soft: #101c31;
  --bg-deep: #040a14;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: #ffffff;
  --surface: rgba(7, 15, 28, 0.74);
  --surface-2: rgba(11, 20, 36, 0.76);
  --text: #e7eefb;
  --text-light: #dbe7f5;
  --muted: #8fa1bc;
  --line: rgba(159, 183, 221, 0.16);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #1f7ae0;
  --accent-dark: #115bb0;
  --accent-soft: rgba(31, 122, 224, 0.16);
  --shadow: 0 24px 64px rgba(0, 4, 12, 0.34);
  --radius: 24px;
  --radius-small: 16px;
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  transform: translateY(-200%);
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 100;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 88px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: transparent;
  backdrop-filter: blur(14px);
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.08), rgba(9, 18, 32, 0.12)),
    radial-gradient(circle at top right, rgba(31, 122, 224, 0.08), transparent 34%);
  color: var(--text-light);
}

/* Universal background wrapper for subtle stars, glows, and shooting stars. */
.space-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.space-gradient,
.space-stars,
.space-nebula,
.space-shooting-stars {
  position: absolute;
  inset: 0;
}

.space-gradient {
  background:
    radial-gradient(circle at 18% 14%, rgba(38, 87, 170, 0.24), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(92, 56, 148, 0.16), transparent 22%),
    radial-gradient(circle at 50% 34%, rgba(30, 68, 122, 0.12), transparent 30%),
    linear-gradient(180deg, #030812 0%, #07101d 38%, #081221 65%, #050a13 100%);
}

.space-stars {
  opacity: 0.56;
  will-change: transform;
}

.space-stars-far {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.6) 0 0.7px, transparent 1px),
    radial-gradient(circle at 24% 70%, rgba(202, 222, 255, 0.5) 0 0.8px, transparent 1.2px),
    radial-gradient(circle at 44% 28%, rgba(255, 255, 255, 0.52) 0 0.8px, transparent 1.2px),
    radial-gradient(circle at 63% 84%, rgba(255, 255, 255, 0.42) 0 0.7px, transparent 1.1px),
    radial-gradient(circle at 81% 34%, rgba(191, 216, 255, 0.5) 0 0.8px, transparent 1.1px),
    radial-gradient(circle at 92% 58%, rgba(255, 255, 255, 0.38) 0 0.8px, transparent 1.2px);
  background-size: 320px 320px, 420px 420px, 360px 360px, 520px 520px, 460px 460px, 580px 580px;
  animation: driftStars 90s linear infinite;
}

.space-stars-near {
  background-image:
    radial-gradient(circle at 8% 40%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.4px),
    radial-gradient(circle at 28% 18%, rgba(214, 228, 255, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 47% 66%, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.4px),
    radial-gradient(circle at 68% 22%, rgba(204, 225, 255, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 78% 74%, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.4px),
    radial-gradient(circle at 94% 16%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.4px);
  background-size: 240px 240px, 300px 300px, 260px 260px, 360px 360px, 320px 320px, 420px 420px;
  opacity: 0.34;
  animation: driftStarsReverse 130s linear infinite;
}

.space-nebula {
  background:
    radial-gradient(circle at 16% 28%, rgba(64, 98, 177, 0.16), transparent 18%),
    radial-gradient(circle at 74% 54%, rgba(63, 111, 192, 0.1), transparent 22%),
    radial-gradient(circle at 84% 22%, rgba(92, 56, 148, 0.08), transparent 16%);
  filter: blur(28px);
  animation: nebulaFloat 28s ease-in-out infinite alternate;
}

.space-shooting-stars {
  opacity: 0.55;
}

.shooting-star {
  position: absolute;
  width: 140px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(201, 224, 255, 0.95));
  filter: blur(0.4px);
  transform: translate3d(0, 0, 0);
  opacity: 0;
}

.shooting-star::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(225, 239, 255, 0.9);
  transform: translateY(-50%);
  box-shadow: 0 0 16px rgba(165, 209, 255, 0.45);
}

.shooting-star-1 {
  top: 18%;
  left: 64%;
  animation: shootingStarDownLeft 16s linear infinite;
}

.shooting-star-2 {
  top: 38%;
  left: 14%;
  animation: shootingStarDownRight 20s linear infinite 7s;
}

.shooting-star-3 {
  top: 62%;
  left: 72%;
  animation: shootingStarUpLeft 18s linear infinite 11s;
}

.shooting-star-4 {
  top: 76%;
  left: 28%;
  animation: shootingStarUpRight 22s linear infinite 4s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(5, 12, 22, 0.72);
  border-bottom: 1px solid var(--line-dark);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  min-width: 0;
}

.brand-mark-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(180deg, #123766, #0a2242);
  border: 1px solid rgba(140, 194, 255, 0.28);
  box-shadow: 0 14px 30px rgba(0, 10, 24, 0.34);
  overflow: hidden;
  flex: 0 0 auto;
  padding: 6px;
}

.brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 58%;
  transform: none;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
}

.brand-name {
  font-size: 1.1rem;
}

.brand-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links,
.footer-links,
.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.86);
}

.nav-links a,
.footer-links a,
.nav-contact-link {
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover,
.nav-contact-link:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-contact-link {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(17, 91, 176, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(17, 91, 176, 0.36);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(196, 216, 246, 0.18);
  box-shadow: none;
}

.section-dark .button-secondary,
.hero-section .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero-section {
  position: relative;
  padding: 64px 0 88px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 17, 32, 0.38), rgba(8, 17, 32, 0)),
    radial-gradient(circle at top right, rgba(31, 122, 224, 0.14), transparent 38%);
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(31, 122, 224, 0.2), transparent 70%);
  pointer-events: none;
}

.section-space-hero::before,
.section-space-services::before,
.section-space-projects::before,
.section-space-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section-space-hero::before {
  background:
    radial-gradient(circle at 78% 18%, rgba(75, 115, 194, 0.18), transparent 18%),
    radial-gradient(circle at 90% 10%, rgba(99, 62, 160, 0.09), transparent 16%);
  filter: blur(8px);
}

.section-space-services::before {
  inset: 4% -12% auto auto;
  width: 34vw;
  height: 34vw;
  max-width: 420px;
  max-height: 420px;
  min-width: 220px;
  min-height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(156, 193, 255, 0.22), transparent 24%),
    radial-gradient(circle at 62% 66%, rgba(13, 41, 78, 0.82), rgba(4, 12, 26, 0.15) 62%, transparent 74%);
  box-shadow: inset -42px -52px 90px rgba(3, 9, 18, 0.82), 0 0 120px rgba(65, 118, 216, 0.12);
  opacity: 0.34;
  filter: blur(6px);
  transform: translateY(var(--services-orbit-shift, 0px));
}

.section-space-projects::before {
  left: -14%;
  top: 12%;
  width: 36vw;
  height: 36vw;
  max-width: 460px;
  max-height: 460px;
  min-width: 240px;
  min-height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 36%, rgba(182, 210, 255, 0.18), transparent 20%),
    radial-gradient(circle at 62% 64%, rgba(12, 27, 54, 0.82), rgba(7, 18, 34, 0.34) 58%, transparent 76%);
  opacity: 0.3;
  filter: blur(8px);
  box-shadow: inset -28px -48px 80px rgba(3, 8, 16, 0.86);
  transform: translateY(var(--projects-orbit-shift, 0px));
}

.section-space-projects::after {
  content: "";
  position: absolute;
  left: -18%;
  top: 22%;
  width: 48vw;
  height: 12vw;
  max-width: 580px;
  min-width: 280px;
  border-radius: 50%;
  border: 1px solid rgba(167, 199, 255, 0.14);
  opacity: 0.24;
  filter: blur(1px);
  transform: rotate(-12deg) translateY(var(--projects-ring-shift, 0px));
  pointer-events: none;
}

.section-space-contact::before {
  right: -8%;
  top: 16%;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  min-width: 240px;
  min-height: 240px;
  background:
    radial-gradient(circle at center, rgba(73, 118, 194, 0.1), transparent 44%),
    radial-gradient(circle at center, transparent 52%, rgba(172, 201, 255, 0.12) 53%, transparent 54%),
    radial-gradient(circle at center, transparent 62%, rgba(172, 201, 255, 0.08) 63%, transparent 64%),
    radial-gradient(circle at center, transparent 72%, rgba(172, 201, 255, 0.06) 73%, transparent 74%);
  opacity: 0.3;
  filter: blur(2px);
  transform: translateY(var(--contact-orbit-shift, 0px));
}

.hero-grid,
.split-layout,
.contact-layout,
.footer-grid {
  display: grid;
  gap: 32px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8cc2ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}

.hero-description,
.section-heading p,
.project-content p,
.price-card li,
.contact-copy p,
.footer-copy,
.feature-item p,
.process-card p,
.info-card p,
.metric-card p {
  color: inherit;
  opacity: 0.82;
  line-height: 1.7;
}

.hero-description {
  max-width: 58ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 20px;
}

.trust-line {
  max-width: 60ch;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.74);
}

.hero-side {
  display: grid;
  align-self: start;
  margin-top: 0px;
}

.metric-card,
.hero-checklist,
.info-card,
.project-card,
.feature-item,
.process-card,
.price-card,
.contact-form {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
}

.hero-panel {
  position: relative;
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.metric-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.metric-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(140, 194, 255, 0.14);
  color: #8cc2ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-checklist {
  margin-top: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.check-item {
  padding: 14px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.check-item + .check-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.card-grid,
.projects-grid,
.process-grid,
.pricing-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.info-card,
.project-card,
.feature-item,
.process-card,
.price-card {
  background: rgba(9, 17, 31, 0.7);
  padding: 28px;
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.info-card {
  min-height: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-image-shell {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(32, 59, 104, 0.6), rgba(10, 18, 34, 0.74));
  border: 1px solid rgba(171, 201, 242, 0.12);
  display: grid;
  place-items: center;
}

.project-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.project-image-shell--wide-fill {
  aspect-ratio: 2.35 / 1;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #d8e9ff;
  font-size: 0.86rem;
  font-weight: 700;
}

.project-button {
  margin-top: auto;
  cursor: pointer;
}

.split-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-bullet {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.section-dark .process-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

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

.process-step {
  display: inline-flex;
  min-width: 52px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(140, 194, 255, 0.14);
  color: #8cc2ff;
  font-weight: 800;
}

.price-card.featured {
  background: linear-gradient(180deg, #0d1b31, #132746);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.price {
  margin-bottom: 18px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.price-list li {
  position: relative;
  padding-left: 24px;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.featured .price-list li::before {
  background: #8cc2ff;
}

.pricing-note {
  margin-top: 20px;
  color: var(--muted);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: start;
}

.contact-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-point {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(9, 17, 31, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  background: rgba(10, 18, 33, 0.8);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(180, 205, 245, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(5, 11, 20, 0.78);
  color: var(--text);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(31, 122, 224, 0.2);
  border-color: var(--accent);
}

.contact-form ::placeholder {
  color: rgba(221, 232, 248, 0.54);
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 1.5em;
  margin: -4px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.form-status.is-success {
  color: #8fe0b5;
}

.form-status.is-error {
  color: #ffb4a8;
}

.full-width {
  grid-column: 1 / -1;
}

.site-footer {
  background: rgba(3, 8, 15, 0.78);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 92px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(14px);
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.footer-brand {
  margin-top: 18px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.footer-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0f2440, #0a1930);
  border: 1px solid rgba(140, 194, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.98rem;
}

.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 22px 50px rgba(17, 91, 176, 0.34);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.project-modal.is-open {
  display: block;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(8px);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 1040px);
  max-height: calc(100vh - 3rem);
  margin: 1.5rem auto;
  overflow: auto;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 28px;
  background: rgba(8, 16, 30, 0.94);
  box-shadow: 0 32px 80px rgba(8, 17, 32, 0.28);
  backdrop-filter: blur(18px);
}

.project-modal-copy {
  padding: 32px 32px 20px;
}

.project-modal-summary {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

.project-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.project-modal-gallery {
  display: grid;
  gap: 18px;
  padding: 0 32px 32px;
}

.project-modal-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(171, 201, 242, 0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(32, 59, 104, 0.6), rgba(10, 18, 34, 0.74));
}

.project-modal-shot img {
  width: 100%;
  height: auto;
}

.project-modal-shot--wide-fill {
  aspect-ratio: 2.35 / 1;
}

.project-modal-shot--wide-fill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes driftStars {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-120px, 90px, 0);
  }
}

@keyframes driftStarsReverse {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(90px, -70px, 0);
  }
}

@keyframes nebulaFloat {
  from {
    transform: translate3d(-1%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, -1.5%, 0) scale(1.04);
  }
}

@keyframes shootingStarDownLeft {
  0%,
  80%,
  100% {
    opacity: 0;
    transform: rotate(-28deg) translate3d(0, 0, 0);
  }
  82% {
    opacity: 0.7;
  }
  92% {
    opacity: 0.08;
    transform: rotate(-28deg) translate3d(-180px, 120px, 0);
  }
}

@keyframes shootingStarDownRight {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: rotate(28deg) translate3d(0, 0, 0);
  }
  80% {
    opacity: 0.55;
  }
  90% {
    opacity: 0.08;
    transform: rotate(28deg) translate3d(170px, 115px, 0);
  }
}

@keyframes shootingStarUpLeft {
  0%,
  82%,
  100% {
    opacity: 0;
    transform: rotate(28deg) translate3d(0, 0, 0);
  }
  84% {
    opacity: 0.48;
  }
  93% {
    opacity: 0.06;
    transform: rotate(28deg) translate3d(-165px, -110px, 0);
  }
}

@keyframes shootingStarUpRight {
  0%,
  81%,
  100% {
    opacity: 0;
    transform: rotate(-28deg) translate3d(0, 0, 0);
  }
  83% {
    opacity: 0.42;
  }
  92% {
    opacity: 0.05;
    transform: rotate(-28deg) translate3d(160px, -100px, 0);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-layout,
  .contact-layout,
  .footer-grid,
  .services-grid,
  .pricing-grid,
  .projects-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    margin-top: 0;
  }

  .footer-grid {
    gap: 28px;
  }

  .section-space-services::before,
  .section-space-projects::before,
  .section-space-projects::after,
  .section-space-contact::before {
    opacity: 0.2;
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 24px;
    background: rgba(8, 17, 32, 0.98);
    border: 1px solid var(--line-dark);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-actions {
    padding-top: 14px;
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero-section {
    padding-top: 44px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .contact-layout,
  .split-layout,
  .footer-grid {
    gap: 24px;
  }

  .nav-shell {
    gap: 12px;
    min-height: 74px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-description,
  .trust-line,
  .section-heading,
  .project-modal-summary {
    max-width: 100%;
  }

  .mobile-cta {
    display: inline-flex;
  }

  .site-footer {
    padding-bottom: 110px;
  }

  .space-stars-near,
  .shooting-star-3,
  .shooting-star-4,
  .section-space-projects::after {
    display: none;
  }

  .section-space-services::before,
  .section-space-projects::before,
  .section-space-contact::before {
    transform: none;
    opacity: 0.14;
    filter: blur(10px);
  }

  .footer-logo {
    width: 210px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark-shell {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    padding: 5px;
  }

  .brand-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .brand-role {
    font-size: 0.8rem;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
    max-width: 100%;
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .hero-panel,
  .info-card,
  .project-card,
  .feature-item,
  .process-card,
  .price-card,
  .contact-form {
    padding: 22px;
  }

  .contact-point {
    min-height: 50px;
    padding: 0 16px;
  }

  .project-modal-panel {
    width: min(calc(100% - 1rem), 1040px);
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
    border-radius: 24px;
  }

  .project-modal-copy {
    padding: 22px 18px 14px;
  }

  .project-modal-gallery {
    padding: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .space-stars,
  .space-nebula,
  .shooting-star,
  .reveal {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .section-space-services::before,
  .section-space-projects::before,
  .section-space-projects::after,
  .section-space-contact::before {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .hero-section {
    padding-top: 36px;
  }

  .site-nav {
    left: 0.625rem;
    right: 0.625rem;
  }

  .nav-actions .button,
  .nav-contact-link {
    width: 100%;
    justify-content: center;
  }

  .mobile-cta {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .project-modal-panel {
    width: min(calc(100% - 0.5rem), 1040px);
  }

  .project-modal-close {
    width: 42px;
    height: 42px;
  }

  .brand-role {
    display: none;
  }
}
