:root {
  color-scheme: dark;
  --black: #030407;
  --navy: #05070d;
  --navy-2: #101827;
  --navy-3: #151f32;
  --gold: #c9a227;
  --gold-light: #f1d16b;
  --paper: #f7f3e8;
  --muted: #aab0bd;
  --line: rgba(201, 162, 39, 0.24);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
}

body {
  margin: 0;
  font-family: Inter, Satoshi, "Avenir Next", Arial, sans-serif;
  color: var(--paper);
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 160px),
    linear-gradient(120deg, rgba(201, 162, 39, 0.12), transparent 32rem),
    linear-gradient(180deg, #05070d 0%, #080d16 48%, #030407 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  color: #05070d;
  background: var(--gold-light);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.5);
}

img,
svg {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  transition: transform 220ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

body.is-scrolled .site-header::before {
  border-color: rgba(201, 162, 39, 0.26);
  background: rgba(5, 7, 13, 0.92);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.38);
}

.brand {
  width: clamp(154px, 18vw, 218px);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  border-radius: 999px;
  background: var(--gold);
  transition: transform 180ms ease;
}

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

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header-cta::before,
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transition: transform 520ms ease;
}

.header-cta,
.button.primary {
  color: #05070d;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 16px 38px rgba(201, 162, 39, 0.2);
}

.button.secondary {
  color: var(--paper);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-cta:hover::before,
.button:hover::before {
  transform: translateX(120%);
}

.button.secondary:hover {
  border-color: rgba(241, 209, 107, 0.56);
  background: rgba(255, 255, 255, 0.075);
}

.header-cta:active,
.button:active {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(241, 209, 107, 0.7);
  outline-offset: 4px;
}

.button svg,
.contact-links svg,
.service-card svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 180ms ease, background 180ms ease;
}

.menu-button span {
  width: 18px;
  height: 2px;
  grid-area: 1 / 1;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-button span:first-child {
  transform: translateY(-4px);
}

.menu-button span:last-child {
  transform: translateY(4px);
}

body.menu-open .menu-button span:first-child {
  transform: rotate(45deg);
}

body.menu-open .menu-button span:last-child {
  transform: rotate(-45deg);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 60px;
  padding: 58px 0 64px;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  z-index: 0;
  opacity: 0.24;
  background:
    repeating-linear-gradient(90deg, transparent 0 68px, rgba(201, 162, 39, 0.18) 68px 69px),
    repeating-linear-gradient(0deg, transparent 0 68px, rgba(247, 243, 232, 0.08) 68px 69px);
  transform: translateX(-50%);
  transform-origin: center bottom;
}

.line-field-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-canvas {
  position: fixed;
  z-index: 0;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.page-canvas + .site-header {
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 100vw;
  background:
    radial-gradient(circle at 22% 22%, rgba(241, 209, 107, 0.13), transparent 32rem),
    linear-gradient(90deg, rgba(5, 7, 13, 0.12), rgba(5, 7, 13, 0.78));
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-canvas {
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
}

.hero-copy > * {
  animation: rise-in 720ms ease both;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 80ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 160ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 240ms;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.94;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.35rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 460px;
  padding: 24px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    #080d16;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise-in 780ms ease 180ms both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(201, 162, 39, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 76%);
  animation: grid-drift 18s linear infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateY(-100%);
  background: linear-gradient(180deg, transparent, rgba(241, 209, 107, 0.1), transparent);
  animation: scan-line 5s ease-in-out infinite;
}

.hero-visual > * {
  position: relative;
}

.visual-top {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: start;
}

.visual-top img {
  width: 58px;
  height: 58px;
}

.visual-top strong,
.visual-top span {
  display: block;
}

.visual-top span,
.metric span,
.launch-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.metric {
  min-height: 124px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.64);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.metric:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 209, 107, 0.4);
}

.metric.active {
  border-color: rgba(201, 162, 39, 0.42);
  background: rgba(201, 162, 39, 0.11);
}

.metric strong {
  display: block;
  margin-top: 28px;
  color: var(--paper);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1;
}

.launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(201, 162, 39, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.launch-card div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.launch-card strong {
  color: var(--gold-light);
  font-size: 1.2rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #43d38a;
  box-shadow: 0 0 22px rgba(67, 211, 138, 0.64);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.code-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 152px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(3, 4, 7, 0.68);
}

.code-panel span {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.9), rgba(247, 243, 232, 0.18));
  background-size: 180% 100%;
  animation: code-flow 3.8s ease-in-out infinite;
}

.code-panel span:nth-child(2) {
  width: 78%;
  animation-delay: 120ms;
}

.code-panel span:nth-child(3) {
  width: 58%;
  animation-delay: 240ms;
}

.code-panel span:nth-child(4) {
  width: 88%;
  animation-delay: 360ms;
}

.about,
.services,
.portfolio,
.pricing,
.contact,
.company-details {
  padding: 92px 0;
}

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

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  flex: 0 0 auto;
  color: var(--gold-light);
  font-weight: 900;
}

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

.about-grid p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.card-grid,
.pricing-grid,
.work-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.work-card,
.price-card {
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 8px;
  background: var(--panel);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.work-card:hover,
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.42);
  background: var(--panel-strong);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.service-card {
  min-height: 260px;
  padding: 22px;
}

.service-card svg {
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  color: var(--gold);
  transition: transform 220ms ease;
}

.service-card:hover svg {
  transform: translateY(-3px) scale(1.04);
}

.service-card p,
.price-card li,
.detail-card p {
  color: var(--muted);
  line-height: 1.65;
}

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

.work-card {
  overflow: hidden;
}

.work-card > div:last-child {
  padding: 20px;
}

.work-card > div:last-child > p:first-child {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.55;
  text-transform: uppercase;
}

.work-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
  text-transform: none;
}

.work-preview {
  position: relative;
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 226px;
  padding: 20px;
  background: #0d1421;
  overflow: hidden;
}

.work-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 8px;
}

.work-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(241, 209, 107, 0.14), transparent);
  transition: transform 620ms ease;
}

.work-card:hover .work-preview::after {
  transform: translateX(100%);
}

.work-preview span {
  position: relative;
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(247, 243, 232, 0.2);
}

.work-preview span:first-child {
  width: 42%;
  background: var(--gold);
}

.work-preview span:nth-child(2) {
  width: 72%;
}

.work-preview span:nth-child(3) {
  width: 56%;
}

.work-preview.gym {
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.22), transparent),
    #0d1421;
}

.work-preview.restaurant {
  background:
    linear-gradient(135deg, rgba(241, 209, 107, 0.17), rgba(93, 130, 148, 0.16)),
    #0d1421;
}

.work-preview.dashboard {
  background:
    linear-gradient(135deg, rgba(104, 121, 255, 0.18), rgba(201, 162, 39, 0.18)),
    #0d1421;
}

.work-preview.services-platform {
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.25), rgba(67, 211, 138, 0.1)),
    #0d1421;
}

.work-preview.traffic-security {
  background:
    linear-gradient(135deg, rgba(93, 130, 148, 0.22), rgba(201, 162, 39, 0.13)),
    #0d1421;
}

.work-preview.automation-service {
  background:
    linear-gradient(135deg, rgba(241, 209, 107, 0.2), rgba(91, 116, 255, 0.12)),
    #0d1421;
}

.work-preview.auth-service {
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.16), rgba(229, 83, 113, 0.13)),
    #0d1421;
}

.work-preview.attendance-api {
  background:
    linear-gradient(135deg, rgba(78, 201, 176, 0.14), rgba(201, 162, 39, 0.19)),
    #0d1421;
}

.work-preview.mobile-app {
  background:
    linear-gradient(135deg, rgba(104, 121, 255, 0.17), rgba(247, 243, 232, 0.08)),
    #0d1421;
}

.work-preview.mailer-automation {
  background:
    linear-gradient(135deg, rgba(241, 209, 107, 0.16), rgba(67, 211, 138, 0.13)),
    #0d1421;
}

.work-preview.live-site {
  justify-items: start;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.28), rgba(17, 24, 39, 0.48)),
    #0d1421;
}

.work-preview.live-site img {
  position: relative;
  width: 54px;
  height: 54px;
  margin-bottom: auto;
}

.project-link,
.detail-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--gold-light);
  font-weight: 900;
  transition: color 180ms ease, transform 180ms ease;
}

.project-link:hover,
.detail-card a:hover {
  color: var(--paper);
  transform: translateX(4px);
}

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

.price-card {
  display: grid;
  align-content: start;
  min-height: 380px;
  padding: 24px;
}

.price-card.featured {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.1);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.price-card.featured:hover {
  transform: translateY(-14px);
}

.price-card p {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card h3 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.price-card ul {
  display: grid;
  gap: 12px;
  min-height: 130px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 22px;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.price-card .button {
  align-self: end;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 44px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(201, 162, 39, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.1), transparent 52%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 7, 13, 0.72), rgba(5, 7, 13, 0.28));
  pointer-events: none;
}

.contact-panel > :not(.contact-canvas) {
  position: relative;
  z-index: 2;
}

.contact-canvas {
  opacity: 0.54;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 800;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.contact-links svg {
  color: var(--gold-light);
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(3, 4, 7, 0.58);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
  height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 124px;
  padding: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(241, 209, 107, 0.74);
  background: rgba(3, 4, 7, 0.78);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--gold-light);
  font-weight: 800;
}

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

.detail-card {
  min-height: 300px;
  padding: 22px;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 8px;
  background: var(--panel);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.detail-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.42);
  background: var(--panel-strong);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.detail-label {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staff-card {
  grid-column: 1 / -1;
  min-height: 0;
}

.staff-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.staff-card-header .detail-label {
  margin-bottom: 12px;
}

.staff-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.staff-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 162, 39, 0.24);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.staff-controls button:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 209, 107, 0.58);
  background: rgba(255, 255, 255, 0.09);
}

.staff-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.staff-controls span {
  min-width: 48px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.staff-slider {
  position: relative;
  overflow: hidden;
}

.staff-slide {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
  will-change: opacity, transform;
}

.staff-slide.is-active {
  animation: staff-slide-next 360ms ease both;
}

.staff-card.is-reversing .staff-slide.is-active {
  animation-name: staff-slide-prev;
}

.staff-slide[hidden] {
  display: none;
}

.staff-photo {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.66);
  overflow: hidden;
}

.staff-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 54%, rgba(5, 7, 13, 0.78)),
    linear-gradient(90deg, rgba(201, 162, 39, 0.1), transparent 45%);
  pointer-events: none;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.staff-copy {
  display: grid;
  align-content: center;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.1), transparent 52%),
    rgba(5, 7, 13, 0.42);
}

.staff-copy p {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-copy h4 {
  margin: 0 0 16px;
  color: var(--paper);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.staff-copy span {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
  color: var(--muted);
}

.site-footer img {
  width: 34px;
  height: 34px;
}

.site-footer p {
  margin: 0;
  color: var(--paper);
  font-weight: 900;
}

.site-footer span {
  font-size: 0.92rem;
}

.top-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 162, 39, 0.34);
  border-radius: 8px;
  color: #05070d;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 84px 84px;
  }
}

@keyframes scan-line {
  0%,
  55% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 16px rgba(67, 211, 138, 0.5);
  }

  50% {
    transform: scale(1.24);
    box-shadow: 0 0 28px rgba(67, 211, 138, 0.76);
  }
}

@keyframes code-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes staff-slide-next {
  from {
    opacity: 0;
    transform: translateX(22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes staff-slide-prev {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .site-header {
    padding: 10px 0;
  }

  .brand {
    width: clamp(150px, 13vw, 182px);
  }

  .hero {
    gap: clamp(36px, 4vw, 56px);
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    padding: clamp(34px, 5vh, 44px) 0 clamp(42px, 6vh, 54px);
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(3rem, 5.2vw, 4.35rem);
    line-height: 0.95;
  }

  .hero-text {
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .hero-visual {
    min-height: 420px;
    gap: 14px;
    padding: 20px;
  }

  .metric {
    min-height: 108px;
  }

  .metric strong {
    margin-top: 22px;
  }

  .code-panel {
    min-height: 128px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: 88px 16px auto;
    z-index: 30;
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #05070d;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
    animation: menu-in 180ms ease both;
  }

  .nav-links a {
    padding: 15px;
  }

  .nav-links a::after {
    left: 15px;
    right: auto;
    bottom: 9px;
    width: 34px;
    transform-origin: left;
  }

  .hero,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-visual {
    min-height: 460px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    width: 156px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.15rem);
  }

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

  .hero-visual {
    min-height: auto;
    padding: 16px;
  }

  .signal-grid,
  .services-grid,
  .pricing-grid,
  .work-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 112px;
  }

  .section-heading.split {
    display: grid;
  }

  .staff-card-header,
  .staff-slide {
    grid-template-columns: 1fr;
  }

  .staff-card-header {
    display: grid;
  }

  .staff-controls {
    justify-self: start;
  }

  .staff-photo,
  .staff-photo img {
    min-height: 310px;
  }

  .about,
  .services,
  .portfolio,
  .pricing,
  .contact,
  .company-details {
    padding: 64px 0;
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .top-button {
    right: 14px;
    bottom: 14px;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

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

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
