:root {
  --black: #02040a;
  --navy: #071126;
  --panel: rgba(13, 20, 43, 0.66);
  --panel-strong: rgba(17, 27, 56, 0.9);
  --white: #f5f7ff;
  --muted: #aab4d4;
  --line: rgba(180, 205, 255, 0.15);
  --purple: #8b5cf6;
  --blue: #23c7ff;
  --cyan: #62f5ff;
  --danger: #ff6f91;
  --success: #72f6a0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  cursor: auto;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  border: 0;
}

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

img {
  height: auto;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 2000;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.background-system {
  position: fixed;
  inset: 0;
  z-index: -5;
  background: radial-gradient(circle at 50% 0%, rgba(52, 78, 190, 0.28), transparent 44%), var(--black);
  overflow: hidden;
}

#bgCanvas,
.gradient-flow,
.grid-layer,
.light-streaks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gradient-flow {
  opacity: 0.78;
  background:
    radial-gradient(circle at var(--gx, 20%) var(--gy, 20%), rgba(139, 92, 246, 0.38), transparent 30%),
    radial-gradient(circle at calc(100% - var(--gx, 20%)) calc(100% - var(--gy, 20%)), rgba(35, 199, 255, 0.26), transparent 32%);
  filter: blur(22px);
  transition: opacity 900ms var(--ease);
  animation: gradientFlow 16s linear infinite;
}

.grid-layer {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(98, 245, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 245, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(720px) rotateX(62deg) translateY(6vh) scale(1.25);
  animation: gridFloat 12s linear infinite;
}

.light-streaks::before,
.light-streaks::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 2px;
  left: -48vw;
  top: 28vh;
  background: linear-gradient(90deg, transparent, rgba(98, 245, 255, 0.86), transparent);
  filter: blur(0.5px);
  animation: streak 7s linear infinite;
}

.light-streaks::after {
  top: 66vh;
  animation-delay: 2.8s;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.76), transparent);
}

.scroll-progress {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
  box-shadow: 0 0 24px rgba(35, 199, 255, 0.8);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  display: none;
}

@media (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    display: block;
  }
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(98, 245, 255, 0.95);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(98, 245, 255, 0.54);
  transition: width 180ms var(--ease), height 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.cursor-ring.is-hovering {
  width: 56px;
  height: 56px;
  background: rgba(98, 245, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.9);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 260ms var(--ease), border-color 260ms var(--ease), transform 260ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(4, 8, 18, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.logo-slot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(98, 245, 255, 0.24);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.7rem;
  overflow: hidden;
}

.logo-slot img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  transform: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-menu a {
  position: relative;
  transition: color 180ms var(--ease);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--cyan);
  transition: transform 220ms var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 750;
  isolation: isolate;
  overflow: hidden;
  cursor: none;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(120deg, var(--purple), var(--blue), var(--cyan));
  transition: opacity 220ms var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 0.52;
}

.btn-primary {
  border: 1px solid rgba(98, 245, 255, 0.42);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(35, 199, 255, 0.84));
  color: var(--white);
  box-shadow: 0 16px 42px rgba(35, 199, 255, 0.2);
}

.btn-secondary,
.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.btn-small {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.92rem;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-top: 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 34px 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-title {
  grid-column: 1 / -1;
  max-width: 1180px;
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 2.85rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: nowrap;
  text-shadow: 0 0 36px rgba(35, 199, 255, 0.14), 0 0 70px rgba(139, 92, 246, 0.12);
}

.hero-subtitle {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 760;
}

.hero-subtitle-blink {
  text-shadow: 0 0 18px rgba(98, 245, 255, 0.44), 0 0 34px rgba(139, 92, 246, 0.24);
  animation: blinkGlow 2.8s ease-in-out infinite;
}

.hero-description {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-proof span,
.about-pill-row span,
.tech-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.hero-visual {
  position: relative;
  min-height: 690px;
  transform: translateX(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(22px);
}

.hero-image-button {
  position: absolute;
  inset: 10px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: none;
  z-index: 1;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(98, 245, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(139, 92, 246, 0.28);
  animation: rotateSlow 18s linear infinite;
}

.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(245, 247, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(35, 199, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 70px rgba(2, 4, 10, 0.18), 0 0 60px rgba(35, 199, 255, 0.1);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.94;
  filter: saturate(1.06) contrast(1.03);
  transform: none;
}

.orbital-card {
  position: absolute;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 10, 24, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  animation: floatY 4.6s var(--ease) infinite alternate;
}

.orbital-card-one {
  top: 72px;
  left: 24px;
}

.orbital-card-two {
  right: 20px;
  top: 45%;
  animation-delay: 0.7s;
}

.orbital-card-three {
  bottom: 62px;
  left: 52px;
  animation-delay: 1.1s;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

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

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

.featured-project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), background 260ms var(--ease);
}

.featured-project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(98, 245, 255, 0.38);
  background: rgba(17, 27, 56, 0.76);
}

.project-preview {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: rgba(2, 4, 10, 0.5);
  cursor: pointer;
}

.project-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 420ms var(--ease), filter 420ms var(--ease);
}

.project-preview:hover img,
.project-preview:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08) brightness(1.05);
}

.featured-project-card div {
  padding: 18px;
}

.featured-project-card span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(98, 245, 255, 0.1);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.featured-project-card h3 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
}

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

.static-project-card,
.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.image-card {
  display: block;
  padding: 0;
  min-height: 220px;
  cursor: none;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), background 260ms var(--ease);
}

.image-card:hover,
.image-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(98, 245, 255, 0.38);
  background: rgba(17, 27, 56, 0.76);
}

.static-project-card img,
.image-card img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
  background: rgba(2, 4, 10, 0.48);
  transition: transform 420ms var(--ease), filter 420ms var(--ease);
}

.static-project-card:hover img,
.image-card:hover img,
.image-card:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.12) brightness(1.08);
}

.static-project-card {
  padding: 14px;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), background 260ms var(--ease);
}

.about-image-grid,
.contact-image-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  margin-top: 28px;
}

.contact-image-grid {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  margin-top: 0;
}

.about-image-grid .image-card img {
  aspect-ratio: 16 / 10;
}

.about-image-grid .image-card:not(.image-card-large) img {
  aspect-ratio: 4 / 5;
}

.contact-image-grid .image-card img {
  aspect-ratio: 16 / 8;
}

.static-project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(98, 245, 255, 0.38);
  background: rgba(17, 27, 56, 0.76);
}

.static-project-card span {
  display: inline-flex;
  margin-top: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(98, 245, 255, 0.1);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.static-project-card h2 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
}

.static-project-card p {
  margin: 0 0 4px;
  color: var(--muted);
}

.page-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.service-card,
.project-card,
.chat-shell,
.contact-form,
.stats-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.service-card,
.project-card {
  padding: 24px;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), background 260ms var(--ease);
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(98, 245, 255, 0.38);
  background: rgba(17, 27, 56, 0.76);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(98, 245, 255, 0.1);
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  cursor: none;
}

.filter-btn.active {
  border-color: rgba(98, 245, 255, 0.56);
  color: var(--cyan);
}

.project-image {
  display: grid;
  place-items: center;
  min-height: 168px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.24), rgba(35, 199, 255, 0.12));
  color: rgba(245, 247, 255, 0.72);
}

.project-meta,
.tech-list,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta,
.tech-list {
  margin: 12px 0;
}

.project-meta span,
.tech-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
}

.timeline-item {
  position: relative;
  padding: 76px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.timeline-item span {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 34px rgba(35, 199, 255, 0.28);
}

.timeline-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.about-grid,
.assistant-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.about-pill-row,
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
}

.stats-panel div {
  padding: 28px 18px;
  background: rgba(255, 255, 255, 0.035);
}

.stats-panel strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}

.stats-panel span {
  color: var(--muted);
}

.trust-line {
  margin-bottom: 0;
  color: var(--white);
  font-weight: 750;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.trust-badges span {
  border: 1px solid rgba(98, 245, 255, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(98, 245, 255, 0.07);
  color: var(--white);
  font-size: 0.88rem;
}

.chat-shell {
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.chat-header span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px var(--success);
}

.chat-messages {
  min-height: 258px;
  padding: 18px;
}

.chat-message {
  max-width: 86%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.chat-message.user {
  margin-left: auto;
  background: rgba(35, 199, 255, 0.13);
  color: var(--white);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

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

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

.contact-detail-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.contact-detail-card:hover,
.contact-detail-card:focus-visible {
  border-color: rgba(98, 245, 255, 0.44);
  background: rgba(35, 199, 255, 0.08);
}

.contact-detail-card span {
  color: var(--cyan);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-detail-card strong {
  color: var(--white);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.form-row,
.form-row-full {
  display: grid;
  gap: 7px;
}

.form-row-full,
.form-status,
.contact-form button {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 4, 10, 0.58);
  color: var(--white);
  padding: 12px 13px;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(98, 245, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(35, 199, 255, 0.12);
}

textarea {
  resize: vertical;
  min-height: 134px;
}

.form-row small {
  min-height: 18px;
  color: var(--danger);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-status.success {
  color: var(--success);
}

.honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
}

.floating-action,
.whatsapp-float {
  position: fixed;
  z-index: 1000;
  right: 22px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease);
}

.image-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 10, 0.76);
  backdrop-filter: blur(16px);
  cursor: none;
}

.image-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(82vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(98, 245, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(5, 10, 24, 0.92);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.6), 0 0 70px rgba(35, 199, 255, 0.14);
  transform: translateY(18px) scale(0.98);
  transition: transform 260ms var(--ease);
}

.image-modal.is-open .image-modal-panel {
  transform: translateY(0) scale(1);
}

.image-modal-panel img {
  width: 100%;
  max-height: min(82vh, 820px);
  object-fit: contain;
  background: rgba(2, 4, 10, 0.82);
}

.image-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(245, 247, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(2, 4, 10, 0.7);
  color: var(--white);
  cursor: none;
}

.floating-action:hover,
.floating-action:focus-visible,
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.08);
  filter: brightness(1.08);
}

.floating-action svg,
.whatsapp-float svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.whatsapp-float {
  bottom: 22px;
  background: linear-gradient(135deg, #25d366, #0aa06e);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.48), 0 18px 38px rgba(0, 0, 0, 0.34);
  animation: pulse 2s infinite, floatAction 4s ease-in-out infinite;
}

.call-float {
  bottom: 92px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.96), rgba(35, 199, 255, 0.92));
  box-shadow: 0 0 0 0 rgba(35, 199, 255, 0.4), 0 18px 38px rgba(0, 0, 0, 0.34);
  animation: pulseBlue 2.4s infinite, floatAction 4.4s ease-in-out infinite;
}

.site-footer {
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  background: rgba(2, 4, 10, 0.42);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}

.footer-grid strong {
  display: block;
  letter-spacing: 0.08em;
}

.footer-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

@keyframes gradientFlow {
  0%, 100% { --gx: 18%; --gy: 18%; }
  50% { --gx: 78%; --gy: 34%; }
}

@keyframes gridFloat {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}

@keyframes streak {
  from { transform: translateX(0) rotate(-12deg); opacity: 0; }
  14%, 74% { opacity: 1; }
  to { transform: translateX(150vw) rotate(-12deg); opacity: 0; }
}

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

@keyframes floatY {
  to { transform: translateY(-16px); }
}

@keyframes blinkGlow {
  0%, 100% { opacity: 1; filter: brightness(1); }
  45% { opacity: 0.58; filter: brightness(0.86); }
  65% { opacity: 1; filter: brightness(1.18); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 16px rgba(40, 209, 70, 0), 0 18px 38px rgba(0, 0, 0, 0.34); }
  100% { box-shadow: 0 0 0 0 rgba(40, 209, 70, 0), 0 18px 38px rgba(0, 0, 0, 0.34); }
}

@keyframes pulseBlue {
  70% { box-shadow: 0 0 0 14px rgba(35, 199, 255, 0), 0 18px 38px rgba(0, 0, 0, 0.34); }
  100% { box-shadow: 0 0 0 0 rgba(35, 199, 255, 0), 0 18px 38px rgba(0, 0, 0, 0.34); }
}

@keyframes floatAction {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

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

  .nav-menu {
    position: fixed;
    inset: 76px 20px auto;
    display: grid;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(4, 8, 18, 0.96);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(22px);
  }

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

  .nav-menu a {
    padding: 13px 8px;
  }

  .nav-cta {
    display: none;
  }

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

  .hero-visual {
    min-height: 570px;
    transform: none;
  }

  .hero-title {
    font-size: clamp(2.15rem, 5vw, 3rem);
    max-width: 100%;
    text-wrap: balance;
  }

  .hero-subtitle {
    font-size: 1.28rem;
  }

  .hero-description {
    max-width: 720px;
  }

  .service-grid,
  .portfolio-grid,
  .timeline,
  .works-grid,
  .static-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .shell {
    width: min(100% - 32px, 1160px);
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.58rem);
    line-height: 1.06;
    max-width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
  }

  .hero-description {
    margin-top: 14px;
    font-size: 0.94rem;
    line-height: 1.65;
    text-align: center;
  }

  .hero-proof {
    justify-content: center;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 26px;
  }

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

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

  .hero-image-button {
    inset: 8px;
  }

  .orbital-card {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .orbital-card-one {
    top: 26px;
    left: 14px;
  }

  .orbital-card-two {
    right: 12px;
  }

  .orbital-card-three {
    bottom: 26px;
    left: 18px;
  }

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

  .section-heading h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

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

  .filter-btn {
    width: 100%;
  }

  .service-grid,
  .portfolio-grid,
  .timeline,
  .works-grid,
  .static-portfolio-grid,
  .about-image-grid,
  .contact-image-grid,
  .stats-panel,
  .contact-form,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .form-row-full,
  .form-status,
  .contact-form button {
    grid-column: auto;
  }

  .project-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-actions .btn,
  .contact-form button {
    width: 100%;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-details {
    margin-top: 22px;
  }

  .contact-detail-card {
    padding: 14px;
  }

  .floating-action,
  .whatsapp-float {
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .floating-action svg,
  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }

  .whatsapp-float {
    bottom: 18px;
  }

  .call-float {
    bottom: 82px;
  }

  .image-modal {
    padding: 14px;
  }

  .image-modal-close {
    top: 10px;
    right: 10px;
  }

  .footer-grid {
    display: grid;
    text-align: center;
  }

  .footer-grid nav {
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 2.55rem;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
