:root {
  --blue: #0b5cad;
  --blue-deep: #063a70;
  --cyan: #25b8d6;
  --silver: #c7ced8;
  --ink: #121820;
  --muted: #5d6977;
  --white: #f7fafc;
  --line: rgba(199, 206, 216, 0.42);
  --panel: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 70px rgba(18, 24, 32, 0.16);
  --font-ui: "Bahnschrift", "Arial Narrow", Arial, sans-serif;
  --font-cn: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(11, 92, 173, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 92, 173, 0.045) 1px, transparent 1px),
    var(--white);
  background-size: 72px 72px;
  font-family: var(--font-cn);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(199, 206, 216, 0.32) 48%, rgba(247, 250, 252, 0.92));
}

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

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

button {
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #fff;
  background: #07111c;
  animation: openingFallback 5s ease forwards;
}

.opening-panel {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 184, 214, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(199, 206, 216, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 45%, rgba(37, 184, 214, 0.18), transparent 32%),
    #07111c;
  background-size: 92px 92px, 92px 92px, auto, auto;
}

.opening-word {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: clamp(28px, 8vw, 108px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.opening-line {
  position: absolute;
  left: 18vw;
  right: 18vw;
  bottom: 32vh;
  height: 2px;
  background: var(--cyan);
  transform-origin: left center;
}

.reveal,
.case-grid figure {
  transition: opacity 620ms ease, transform 620ms ease;
}

body.reveal-ready .is-visible {
  animation: revealUp 520ms ease both;
}

.reveal,
.case-grid figure {
  opacity: 1;
  transform: none;
}

.metrics,
.metrics div,
.service-card,
.service-card-surface,
.case-feature,
.case-feature img,
.case-grid figure,
.case-grid img,
.contact-inner,
.contact-list a {
  visibility: visible !important;
  opacity: 1 !important;
  clip-path: none !important;
}

.metrics,
.metrics div,
.metrics strong,
.metrics span {
  transform: none !important;
  filter: none !important;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 184, 214, 0.7);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 24, 32, 0.82), rgba(18, 24, 32, 0.16));
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 250, 252, 0.92);
  box-shadow: 0 8px 28px rgba(18, 24, 32, 0.12);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(199, 206, 216, 0.8);
  background: rgba(247, 250, 252, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 5px;
  color: currentColor;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.72;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 7px 0;
  color: currentColor;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transition: right 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  right: 0;
}

.header-call {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid currentColor;
  font-family: var(--font-ui);
  font-size: 14px;
  opacity: 0.9;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero,
.motion-section {
  transform-style: preserve-3d;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(7, 14, 24, 0.72));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 14, 24, 0.9) 0%, rgba(7, 14, 24, 0.7) 34%, rgba(7, 14, 24, 0.22) 72%, rgba(7, 14, 24, 0.5) 100%),
    url("assets/generated/city-night-hero.jpg") center / cover no-repeat;
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(37, 184, 214, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(199, 206, 216, 0.08) 1px, transparent 1px);
  background-size: 88px 88px;
  animation: gridDrift 18s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  max-width: 1240px;
  min-height: 84vh;
  margin: 0 auto;
  padding: 110px clamp(20px, 5vw, 56px) 120px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  line-height: 1.06;
}

.hero-title-char {
  display: inline-block;
  transform-origin: 50% 100%;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(247, 250, 252, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(247, 250, 252, 0.76);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #062333;
}

.btn.secondary {
  background: transparent;
  color: #fff;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: min(620px, 100%);
  margin-top: 42px;
  border: 1px solid rgba(199, 206, 216, 0.26);
  background: rgba(7, 14, 24, 0.44);
  backdrop-filter: blur(12px);
}

.hero-proof span {
  flex: 1 1 160px;
  min-height: 82px;
  padding: 16px 18px;
  border-right: 1px solid rgba(199, 206, 216, 0.18);
  color: rgba(247, 250, 252, 0.78);
}

.hero-proof b {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 30px;
  line-height: 1;
}

.index-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(199, 206, 216, 0.24);
  background: rgba(7, 19, 31, 0.74);
  backdrop-filter: blur(14px);
}

.index-band span {
  padding: 22px clamp(18px, 5vw, 62px);
  border-right: 1px solid rgba(199, 206, 216, 0.18);
  color: var(--white);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 800;
  text-align: center;
}

.section {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(78px, 10vw, 128px) clamp(20px, 5vw, 56px);
}

.motion-section {
  overflow: hidden;
}

.motion-word {
  position: absolute;
  top: clamp(34px, 8vw, 78px);
  left: clamp(18px, 4vw, 52px);
  z-index: 0;
  color: rgba(11, 92, 173, 0.075);
  font-family: var(--font-ui);
  font-size: clamp(58px, 15vw, 188px);
  font-weight: 800;
  line-height: 0.8;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.section > :not(.motion-word),
.services-section > :not(.motion-word),
.contact-section > :not(.motion-word) {
  position: relative;
  z-index: 1;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.18;
}

.section-heading p,
.about-layout p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(390px, 0.78fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: start;
}

.about-section h2 {
  max-width: 650px;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.13;
  text-wrap: balance;
}

.about-layout p {
  max-width: 690px;
  margin-top: 24px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(176px, auto);
  align-self: start;
  overflow: visible;
  border-top: 4px solid var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.metrics div {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 38px 30px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.metrics div:nth-child(2n) {
  border-right: 0;
}

.metrics div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metrics strong {
  display: block;
  color: var(--blue);
  font-family: var(--font-ui);
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 0;
  color: var(--muted);
  line-height: 1.45;
}

.services-section {
  position: relative;
  max-width: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(199, 206, 216, 0.26) 45%, rgba(255, 255, 255, 0));
}

.services-section > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.service-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.service-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.service-image img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  transform: scale(1.02);
}

.service-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(18, 24, 32, 0.05), rgba(18, 24, 32, 0.32));
}

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

.service-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 33;
  --color-sensitivity: 53;
  --border-radius: 8px;
  --glow-padding: 34px;
  --cone-spread: 23;
  --fill-opacity: 0.35;
  --card-bg: rgba(247, 250, 252, 0.96);
  --glow-color: hsl(190deg 88% 58% / 100%);
  --glow-color-60: hsl(190deg 88% 58% / 60%);
  --glow-color-50: hsl(190deg 88% 58% / 50%);
  --glow-color-40: hsl(190deg 88% 58% / 40%);
  --glow-color-30: hsl(190deg 88% 58% / 30%);
  --glow-color-20: hsl(190deg 88% 58% / 20%);
  --glow-color-10: hsl(190deg 88% 58% / 10%);
  --gradient-one: radial-gradient(at 80% 55%, #0b5cad 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #25b8d6 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #c7ced8 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #38bdf8 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #f7fafc 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #0b5cad 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #25b8d6 0px, transparent 50%);
  --gradient-base: linear-gradient(#0b5cad 0 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 250px;
  align-content: stretch;
  text-align: left;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  color: var(--ink);
  cursor: pointer;
  isolation: isolate;
  overflow: visible;
  transition: opacity 520ms ease, transform 520ms ease, border-color 180ms ease, box-shadow 180ms ease;
  transform: translate3d(0, 0, 0.01px);
  box-shadow:
    rgba(18, 24, 32, 0.08) 0 2px 4px,
    rgba(18, 24, 32, 0.08) 0 8px 18px,
    rgba(18, 24, 32, 0.08) 0 18px 36px;
}

.service-card::before,
.service-card::after,
.service-card > .edge-light {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -1;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
}

.service-card:not(:hover):not(.sweep-active)::before,
.service-card:not(:hover):not(.sweep-active)::after,
.service-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.service-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

.service-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add;
}

.service-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  z-index: 1;
  pointer-events: none;
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black 2.5%,
      transparent 10%,
      transparent 90%,
      black 97.5%
    );
}

.service-card > .edge-light::before {
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  content: "";
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 10px 0 var(--glow-color-40),
    inset 0 0 24px 2px var(--glow-color-20),
    0 0 3px 0 var(--glow-color-50),
    0 0 12px 0 var(--glow-color-40),
    0 0 32px 2px var(--glow-color-20);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 184, 214, 0.58);
  box-shadow: 0 18px 42px rgba(18, 24, 32, 0.13);
}

.service-card-surface {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 250px;
  align-content: end;
  overflow: hidden;
  padding: 24px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.18), rgba(247, 250, 252, 0.96) 54%, rgba(247, 250, 252, 0.98));
}

.service-thumb {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 46%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.04);
}

.service-index {
  color: var(--cyan);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.service-card h3 {
  margin: 18px 0 10px;
  font-size: 21px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.service-card b {
  display: inline-flex;
  width: max-content;
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--cyan);
  color: var(--blue-deep);
  font-size: 14px;
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.case-feature img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.case-feature div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
  border-left: 6px solid var(--blue);
}

.case-feature span {
  color: var(--cyan);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-feature h3 {
  margin: 14px 0 14px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
}

.case-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

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

.case-grid figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 24, 32, 0.1);
  background: var(--ink);
}

.case-grid figure:nth-child(3n + 1) {
  grid-column: span 2;
}

.case-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.48 / 1;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 320ms ease, filter 320ms ease;
}

.case-grid figure:hover img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.04);
}

.case-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(6, 58, 112, 0.92), rgba(18, 24, 32, 0.72));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.contact-section {
  margin-top: 40px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 24, 32, 0.92), rgba(6, 58, 112, 0.86)),
    url("assets/projects/ci-axis-road.jpg") center / cover no-repeat;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 6vw, 76px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(76px, 10vw, 118px) clamp(20px, 5vw, 56px);
}

.contact-section p {
  max-width: 620px;
  margin-top: 20px;
  color: rgba(247, 250, 252, 0.78);
}

.contact-list {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-list a {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 15px 18px;
  border: 1px solid rgba(199, 206, 216, 0.26);
  background: rgba(247, 250, 252, 0.08);
  backdrop-filter: blur(8px);
}

.contact-list a:hover {
  border-color: rgba(37, 184, 214, 0.7);
  background: rgba(247, 250, 252, 0.14);
}

.contact-list span {
  color: var(--cyan);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(20px, 5vw, 56px);
  color: rgba(247, 250, 252, 0.72);
  background: #0b1118;
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 34px);
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 24, 0.78);
  backdrop-filter: blur(14px);
}

.gallery-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 0;
  width: min(1180px, 100%);
  max-height: min(760px, 92vh);
  border: 1px solid rgba(199, 206, 216, 0.34);
  background: #101820;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.gallery-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-width: 58px;
  height: 36px;
  border: 1px solid rgba(247, 250, 252, 0.4);
  background: rgba(7, 14, 24, 0.7);
  color: #fff;
  cursor: pointer;
}

.gallery-stage {
  display: grid;
  min-height: 520px;
  place-items: center;
  background: #07111c;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: contain;
}

.gallery-side {
  overflow-y: auto;
  padding: 34px 24px 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11, 92, 173, 0.28), rgba(7, 14, 24, 0.96)),
    #0b1118;
}

.gallery-side h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.gallery-side p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(247, 250, 252, 0.72);
  line-height: 1.7;
}

.gallery-count {
  margin-top: 20px;
  color: var(--cyan);
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 700;
}

.gallery-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.gallery-controls button {
  min-height: 42px;
  border: 1px solid rgba(199, 206, 216, 0.34);
  background: rgba(247, 250, 252, 0.08);
  color: #fff;
  cursor: pointer;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbs button.is-active {
  border-color: var(--cyan);
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 34px);
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 24, 0.72);
  backdrop-filter: blur(14px);
}

.contact-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(199, 206, 216, 0.35);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 92, 173, 0.32), rgba(7, 14, 24, 0.94)),
    url("assets/generated/silver-blue-texture.jpg") center / cover no-repeat;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.contact-panel h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.16;
}

.contact-panel p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(247, 250, 252, 0.72);
  line-height: 1.8;
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 58px;
  height: 36px;
  border: 1px solid rgba(247, 250, 252, 0.42);
  background: rgba(7, 14, 24, 0.62);
  color: #fff;
  cursor: pointer;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.contact-actions a {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(199, 206, 216, 0.28);
  background: rgba(247, 250, 252, 0.08);
}

.contact-actions span {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.contact-actions strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-family: var(--font-ui);
  font-size: 18px;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.copy-row button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(37, 184, 214, 0.65);
  background: rgba(37, 184, 214, 0.12);
  color: #fff;
  cursor: pointer;
}

.copy-row span {
  min-height: 1.5em;
  color: var(--cyan);
}

.contact-panel address {
  margin-top: 20px;
  color: rgba(247, 250, 252, 0.72);
  font-style: normal;
}

.quick-dock {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 8px;
}

.quick-dock a,
.quick-dock button {
  display: grid;
  min-width: 48px;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(199, 206, 216, 0.38);
  background: rgba(7, 14, 24, 0.76);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.quick-dock a:hover,
.quick-dock button:hover {
  border-color: var(--cyan);
  background: rgba(11, 92, 173, 0.86);
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 88px 0, 0 88px;
  }
}

@keyframes revealUp {
  from {
    opacity: 0.001;
    transform: translateY(18px);
  }

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

@keyframes openingFallback {
  0%,
  80% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

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

  .nav-links {
    display: none;
  }

  .hero-inner,
  .about-layout,
  .section-heading,
  .service-shell,
  .case-feature,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 116px;
  }

  .case-feature div {
    border-left: 0;
    border-top: 6px solid var(--blue);
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand small,
  .header-call {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark img {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding: 94px 18px 96px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .index-band span {
    padding: 16px 10px;
    font-size: 17px;
  }

  .section {
    padding: 64px 18px;
  }

  .metrics,
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .service-image img {
    min-height: 240px;
  }

  .case-grid figure,
  .case-grid figure:nth-child(3n + 1) {
    grid-column: span 1;
    min-height: 210px;
  }

  .contact-list a {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

  .quick-dock {
    right: 12px;
    bottom: 14px;
  }

  .gallery-panel {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }

  .gallery-stage {
    min-height: 290px;
  }

  .gallery-side {
    max-height: 42vh;
    padding: 24px 16px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
