:root {
  --bg: #04111f;
  --bg-deep: #020a12;
  --panel: rgba(11, 34, 54, 0.72);
  --panel-strong: rgba(11, 34, 54, 0.94);
  --line: rgba(72, 225, 255, 0.18);
  --cyan: #52e8ff;
  --cyan-bright: #00d9ff;
  --green: #00f0ac;
  --purple: #b45cff;
  --text: #f2fbff;
  --muted: #a7c3cf;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 217, 255, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 72%, rgba(0, 240, 172, 0.09), transparent 34rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 48%, #071b2b);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(82, 232, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 232, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 5%, transparent 90%);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(100deg, transparent 0 49.8%, rgba(82, 232, 255, 0.045) 50%, transparent 50.2%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 12, 22, 0.82);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 136px;
  height: 54px;
  border: 1px solid rgba(82, 232, 255, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
  padding: 5px 9px;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  display: block;
  color: #8dd6e4;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  position: relative;
  border-radius: 10px;
  color: #d9eff6;
  font-size: 0.93rem;
  padding: 10px 14px;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: rgba(82, 232, 255, 0.075);
}

.nav-links a.active::after {
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  content: "";
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(82, 232, 255, 0.06);
  cursor: pointer;
  font-size: 1.4rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 88px);
  align-items: center;
  padding: 76px 0;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 56px;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  border: 1px solid rgba(82, 232, 255, 0.23);
  border-radius: 99px;
  color: #a9f4ff;
  background: rgba(82, 232, 255, 0.075);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 8px 13px;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  content: "";
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(92deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 32px rgba(0, 217, 255, 0.2);
}

.hero-copy,
.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 750;
  padding: 12px 22px;
  transition: 200ms ease;
}

.button-primary {
  color: #00141c;
  background: linear-gradient(100deg, var(--cyan-bright), var(--green));
  box-shadow: 0 12px 32px rgba(0, 217, 255, 0.18);
}

.button-secondary {
  border-color: rgba(82, 232, 255, 0.24);
  color: #dffaff;
  background: rgba(255, 255, 255, 0.035);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 217, 255, 0.2);
}

.system-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(82, 232, 255, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(15, 50, 74, 0.78), rgba(7, 25, 41, 0.88));
  box-shadow: var(--shadow), inset 0 0 45px rgba(82, 232, 255, 0.035);
  padding: 30px;
}

.system-panel::before {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -90px;
  right: -70px;
  border-radius: 50%;
  background: rgba(0, 240, 172, 0.15);
  filter: blur(45px);
  content: "";
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-head h2 {
  color: var(--cyan);
  font-size: 1.25rem;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  color: #aaf7da;
  background: rgba(0, 240, 172, 0.09);
  font-size: 0.73rem;
  font-weight: 800;
  padding: 6px 10px;
}

.live-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  content: "";
  animation: pulse 1.8s infinite;
}

.system-list {
  list-style: none;
}

.system-list li {
  display: grid;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #d7ecf3;
  grid-template-columns: 38px 1fr auto;
  padding: 15px 0;
}

.system-list li:last-child {
  border-bottom: 0;
}

.system-list .icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(82, 232, 255, 0.18);
  border-radius: 10px;
  background: rgba(82, 232, 255, 0.06);
}

.system-list small {
  color: #7ab6c5;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.section {
  padding: 94px 0;
}

.section-alt {
  border-block: 1px solid rgba(82, 232, 255, 0.08);
  background: rgba(2, 12, 22, 0.32);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  color: var(--muted);
}

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

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  padding: 28px;
  transition: 220ms ease;
}

.glass-card:hover {
  transform: translateY(-7px);
  border-color: rgba(82, 232, 255, 0.4);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22), 0 0 32px rgba(0, 217, 255, 0.07);
}

.card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(82, 232, 255, 0.2);
  border-radius: 15px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(82, 232, 255, 0.13), rgba(0, 240, 172, 0.07));
  font-size: 1.55rem;
}

.glass-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.glass-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.about-grid {
  display: grid;
  align-items: stretch;
  gap: 22px;
  grid-template-columns: 1.15fr 0.85fr;
}

.about-grid .glass-card {
  padding: 36px;
}

.about-grid h3 {
  color: var(--cyan);
  font-size: 1.4rem;
}

.check-list {
  display: grid;
  list-style: none;
  gap: 14px;
  margin-top: 20px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #c4dbe3;
}

.check-list li::before {
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

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

.preview-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  background: #0c2940;
  box-shadow: var(--shadow);
  display: block;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(82, 232, 255, 0.46);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 217, 255, 0.08);
}

.preview-media,
.preview-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-media {
  display: block;
  object-fit: cover;
  transition: transform 350ms ease;
}

.preview-card:hover .preview-media {
  transform: scale(1.035);
}

.preview-placeholder {
  display: grid;
  place-items: center;
  color: rgba(82, 232, 255, 0.75);
  background: radial-gradient(circle at 70% 20%, rgba(82, 232, 255, 0.28), transparent 40%), #0c2940;
  font-size: 3rem;
}

.preview-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 11, 20, 0.99) 4%, rgba(1, 11, 20, 0.76) 35%, rgba(1, 11, 20, 0.04) 75%);
}

.preview-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 26px;
}

.preview-video-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 1px solid rgba(82, 232, 255, 0.28);
  border-radius: 999px;
  color: #d8f8ff;
  background: rgba(1, 11, 20, 0.78);
  padding: 7px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.preview-copy > span,
.project-category {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.preview-copy h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.home-project-status {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(82, 232, 255, 0.22);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(82, 232, 255, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(0, 217, 255, 0.1), rgba(180, 92, 255, 0.08), rgba(0, 240, 172, 0.08));
  box-shadow: var(--shadow);
  padding: 58px 28px;
  text-align: center;
}

.cta-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cta-panel p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
}

.cta-panel .button-row {
  justify-content: center;
}

.page-hero {
  padding: 92px 0 60px;
  text-align: center;
}

.page-hero .eyebrow {
  margin-inline: auto;
}

.page-hero h1,
.page-hero p {
  margin-inline: auto;
}

.project-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #c7e0e8;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.84rem;
  padding: 8px 14px;
}

.filter-button:hover,
.filter-button.active {
  border-color: rgba(82, 232, 255, 0.45);
  color: #00141c;
  background: linear-gradient(100deg, var(--cyan), var(--green));
}

.project-count {
  color: #82afbc;
  font-size: 0.84rem;
  white-space: nowrap;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: 220ms ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(82, 232, 255, 0.42);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.3), 0 0 28px rgba(0, 217, 255, 0.08);
}

.project-image {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 20%, rgba(82, 232, 255, 0.28), transparent 36%),
    radial-gradient(circle at 25% 80%, rgba(0, 240, 172, 0.14), transparent 38%),
    linear-gradient(145deg, #0a253a, #071522);
}

.project-image::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(82, 232, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 232, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
}

.project-image img {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 350ms ease;
}

.project-media-slider {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.project-slide {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  inset: 0;
  transition: opacity 240ms ease;
}

.project-slide.active {
  visibility: visible;
  opacity: 1;
}

.project-slide img,
.project-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-slide video {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: #02060d;
}

.slider-button {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 236, 255, 0.32);
  border-radius: 10px;
  color: #fff;
  background: rgba(3, 12, 22, 0.7);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  transform: translateY(-50%);
}

.slider-button:hover { background: rgba(16, 55, 72, 0.9); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-count {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(168, 236, 255, 0.24);
  border-radius: 99px;
  color: #dffaff;
  background: rgba(3, 12, 22, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  padding: 5px 9px;
}

.card-video-badge {
  position: absolute;
  z-index: 4;
  left: 10px;
  bottom: 10px;
  border: 1px solid rgba(168, 236, 255, 0.24);
  border-radius: 99px;
  color: #e6fbff;
  background: rgba(3, 12, 22, 0.76);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  padding: 5px 9px;
}

.project-card:hover .project-slide img {
  transform: scale(1.045);
}

.project-placeholder {
  z-index: 1;
  color: rgba(159, 242, 255, 0.88);
  font-size: 3.25rem;
  filter: drop-shadow(0 0 18px rgba(82, 232, 255, 0.24));
}

.project-content {
  padding: 24px;
}

.project-content h2 {
  margin: 7px 0 10px;
  font-size: 1.3rem;
}

.project-content p {
  color: var(--muted);
  font-size: 0.92rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.project-tags span {
  border: 1px solid rgba(82, 232, 255, 0.14);
  border-radius: 99px;
  color: #9dd5df;
  background: rgba(82, 232, 255, 0.045);
  font-size: 0.72rem;
  padding: 5px 9px;
}

.project-open-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  border: 0;
  border-top: 1px solid rgba(82, 232, 255, 0.13);
  color: #91eaff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 15px 0 0;
  text-align: left;
}

.project-open-button span { font-size: 1rem; transition: 180ms ease; }
.project-card:hover .project-open-button span { transform: translate(2px, -2px); }

body.gallery-open { overflow: hidden; }

.gallery-modal {
  position: fixed;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  inset: 0;
  background: rgba(0, 4, 11, 0.86);
  backdrop-filter: blur(12px);
  padding: 12px;
}

.gallery-modal.open { display: flex; animation: galleryFadeIn 180ms ease; }

.gallery-dialog {
  position: relative;
  width: min(1050px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: min(92vh, 840px);
  max-height: calc(100vh - 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(91, 223, 255, 0.3);
  border-radius: 24px;
  background: linear-gradient(145deg, #09182a, #050b15 70%);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.65), 0 0 55px rgba(29, 207, 255, 0.1);
}

.gallery-title-bar {
  min-width: 0;
  border-bottom: 1px solid rgba(91, 223, 255, 0.16);
  background: rgba(5, 13, 25, 0.96);
  padding: 13px 72px 12px 22px;
}

.gallery-title-bar .project-category {
  display: block;
  margin-bottom: 3px;
  font-size: 0.62rem;
}

.gallery-title-bar h2 {
  overflow: hidden;
  margin: 0;
  color: #f1f8ff;
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-close {
  position: absolute;
  z-index: 12;
  top: 10px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(172, 232, 250, 0.27);
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 10, 19, 0.78);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.gallery-close:hover { color: #001119; background: var(--cyan); }

.gallery-viewer {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #02060c;
}

.gallery-stage { position: absolute; display: grid; place-items: center; overflow: hidden; inset: 0; padding: 14px; }
.gallery-stage img, .gallery-stage video {
  position: static !important;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  image-orientation: from-image;
  background: #02060c;
}
.gallery-placeholder { color: rgba(159, 242, 255, 0.88); font-size: 5rem; }

.gallery-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 46px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 236, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  background: rgba(2, 9, 17, 0.72);
  cursor: pointer;
  font-size: 2rem;
  transform: translateY(-50%);
}

.gallery-arrow:hover { background: rgba(29, 119, 145, 0.78); }
.gallery-arrow-prev { left: 15px; }
.gallery-arrow-next { right: 15px; }

.gallery-counter {
  position: absolute;
  z-index: 8;
  right: 16px;
  bottom: 15px;
  border: 1px solid rgba(168, 236, 255, 0.24);
  border-radius: 99px;
  color: #e6fbff;
  background: rgba(2, 9, 17, 0.76);
  font-size: 0.75rem;
  padding: 6px 10px;
}

.gallery-details {
  display: none;
}

.gallery-details h2 { margin: 6px 0 8px; font-size: 1.55rem; }
.gallery-details > p { max-width: 850px; margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.gallery-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  grid-template-columns: none;
  gap: 9px;
  overflow-x: auto;
  margin-top: 17px;
  padding: 2px 2px 6px;
}

.gallery-thumbnail {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(117, 194, 219, 0.18);
  border-radius: 9px;
  color: #91eaff;
  background: #071321;
  cursor: pointer;
  padding: 0;
}

.gallery-thumbnail.active { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(82, 232, 255, 0.13); }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbnail span { font-size: 1.15rem; }
.gallery-thumbnail small { position: absolute; bottom: 5px; font-size: 0.5rem; letter-spacing: 0.12em; }

@keyframes galleryFadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 850px) {
  .gallery-dialog { height: calc(100vh - 16px); max-height: calc(100vh - 16px); }
  .gallery-viewer { min-height: 0; }
  .gallery-stage { padding: 9px; }
  .gallery-title-bar { padding: 11px 60px 10px 15px; }
  .gallery-details { padding: 18px 18px 20px; }
  .gallery-close { top: 9px; right: 9px; }
  .gallery-thumbnails { grid-auto-columns: 78px; }
  .gallery-arrow { width: 39px; height: 47px; }
  .gallery-arrow-prev { left: 9px; }
  .gallery-arrow-next { right: 9px; }
}

.empty-state {
  display: none;
  border: 1px dashed rgba(82, 232, 255, 0.24);
  border-radius: var(--radius-md);
  color: var(--muted);
  padding: 50px 20px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid rgba(82, 232, 255, 0.1);
  color: #7fa3af;
  background: rgba(1, 8, 15, 0.5);
  font-size: 0.86rem;
  padding: 26px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-row a {
  color: #9edbe5;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .nav {
    min-height: 76px;
  }

  .brand img {
    width: 102px;
    height: 45px;
  }

  .brand-copy span {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(3, 16, 28, 0.98);
    box-shadow: var(--shadow);
    padding: 10px;
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .hero {
    padding: 62px 0;
  }

  .hero-grid {
    gap: 40px;
  }

  .section {
    padding: 72px 0;
  }

  .project-tools {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .brand-copy strong {
    font-size: 0.88rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .service-grid,
  .feature-grid,
  .project-preview,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .system-panel,
  .glass-card,
  .about-grid .glass-card {
    padding: 23px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

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