:root {
  color-scheme: dark;
  --ink: #050a0f;
  --ink-soft: #08131d;
  --ink-raised: #0b1721;
  --paper: #f5f8fa;
  --muted: #9babb7;
  --dim: #71818d;
  --line: rgba(164, 205, 223, 0.16);
  --line-strong: rgba(164, 225, 235, 0.32);
  --orange: #ff6333;
  --orange-hot: #ff4f18;
  --cyan: #25e6d2;
  --blue: #4eb5ff;
  --brand: var(--orange);
  --brand-dark: var(--orange-hot);
  --bg: #061019;
  --white: var(--paper);
  --footer: #04080c;
  --max: min(1280px, calc(100vw - 64px));
  --radius: 0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --display: "Barlow Condensed", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --mouse-x: 72%;
  --mouse-y: 14%;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle 720px at var(--mouse-x) var(--mouse-y), rgba(36, 230, 210, 0.08), transparent 62%),
    linear-gradient(180deg, #050a0f 0%, #06111a 44%, #050a0f 100%);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  color: #051015;
  background: var(--cyan);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.container {
  width: var(--max);
  margin: 0 auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.13;
}

.ambient-one {
  top: 12vh;
  right: -10vw;
  width: 46vw;
  height: 46vw;
  background: var(--cyan);
}

.ambient-two {
  top: 120vh;
  left: -18vw;
  width: 36vw;
  height: 36vw;
  background: var(--orange);
  opacity: 0.08;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  border-color: var(--line);
  background: rgba(5, 10, 15, 0.9);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

/* backdrop-filter 放在伪元素上，避免破坏内部 fixed 导航的定位上下文 */
.site-header.is-scrolled::before,
.site-header.menu-active::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 24px;
}

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

.logo img {
  height: 34px;
  width: auto;
}

.logo-text {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 24px 0;
  color: #a9b5be;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0;
  transition: color 160ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  margin-left: 8px;
  border: 1px solid rgba(255, 99, 51, 0.6);
  color: #fff;
  background: rgba(255, 99, 51, 0.08);
  font-size: 14px;
  font-weight: 800;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.nav-cta b {
  margin-left: 14px;
  color: var(--orange);
  font-weight: 800;
}

.nav-cta:hover {
  border-color: var(--orange);
  background: rgba(255, 99, 51, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--line);
  background: rgba(8, 19, 29, 0.7);
}

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

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  min-height: 60vh;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 170px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  cursor: pointer;
  color: var(--paper);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

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

.btn-primary {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange-hot);
  box-shadow: 0 14px 36px rgba(255, 79, 24, 0.28);
}

.btn-primary:hover {
  background: var(--orange);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--paper);
  background: rgba(245, 248, 250, 0.03);
  margin-left: 0;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(37, 230, 210, 0.08);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--paper);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 76px;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(5, 10, 15, 0.96) 0%, rgba(5, 10, 15, 0.88) 38%, rgba(5, 10, 15, 0.45) 72%, rgba(5, 10, 15, 0.82) 100%),
    linear-gradient(180deg, transparent 55%, var(--ink) 98%),
    url("/media/image/bg.jpg") right center / cover no-repeat;
}

.hero > .container {
  width: var(--max);
  max-width: var(--max);
  margin-inline: 0;
  flex-shrink: 0;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(88, 190, 214, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 190, 214, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: clamp(64px, 8vh, 108px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  min-height: 31px;
  margin-bottom: 28px;
  border: 1px solid var(--line-strong);
  color: #b7c7d2;
  background: rgba(7, 18, 27, 0.76);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.eyebrow span {
  padding: 5px 13px;
}

.eyebrow b {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--cyan);
}

.brand-mark {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--paper);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero h1 em {
  display: block;
  margin-top: 8px;
  color: transparent;
  background: linear-gradient(90deg, var(--orange) 0%, #ff9a56 48%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
}

.hero-inner > p,
.hero p.lead {
  max-width: 540px;
  margin: 24px 0 0;
  color: #aebdc7;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  min-width: 88px;
}

.hero-stats b {
  display: block;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.section-muted {
  background:
    linear-gradient(135deg, rgba(255, 99, 51, 0.04), transparent 40%),
    linear-gradient(315deg, rgba(37, 230, 210, 0.05), transparent 40%),
    #061019;
}

.section-head {
  text-align: left;
  margin-bottom: 40px;
  max-width: 720px;
}

.section-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-head h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.section-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  text-align: left;
  margin-top: 36px;
}

/* Service tree groups (aligned with admin Service_type) */
.service-group-spaced {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.service-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.service-group-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.service-group-head p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--cyan);
  transition: color 160ms ease;
}

.breadcrumb a:hover {
  color: var(--paper);
}

.breadcrumb .current {
  color: var(--paper);
}

/* Cards / grids */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(8, 19, 29, 0.72);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  opacity: 0;
  transition: opacity 180ms ease;
}

.card:hover {
  border-color: var(--line-strong);
  background: rgba(11, 24, 36, 0.92);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card-media {
  aspect-ratio: 16 / 10;
  background: #0a1620 center/cover no-repeat;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.news-list .card-media {
  aspect-ratio: 16 / 7;
}

.news-list .card-body h3 {
  font-size: 18px;
}

.card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(5, 10, 15, 0.55));
  pointer-events: none;
}

.card-body {
  padding: 20px 20px 22px;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card {
  text-align: left;
  padding: 24px 22px 26px;
}

div.service-card {
  cursor: default;
}

div.service-card:hover {
  transform: none;
}

.service-card .icon {
  width: 52px;
  height: 52px;
  margin: 0 0 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(37, 230, 210, 0.15));
}

.service-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.card-index b {
  color: var(--orange);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 13px;
  font-family: var(--mono);
}

.meta img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 0;
  background: rgba(255, 99, 51, 0.14);
  border: 1px solid rgba(255, 99, 51, 0.35);
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Page banner */
.page-banner {
  position: relative;
  padding: 140px 0 56px;
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(5, 10, 15, 0.92), rgba(5, 10, 15, 0.72)),
    linear-gradient(135deg, rgba(255, 99, 51, 0.18), transparent 45%),
    url("../img/productbanner.png") center/cover no-repeat;
}

.page-banner::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(88, 190, 214, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 190, 214, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.page-banner p {
  margin: 0;
  max-width: 560px;
  color: #aebdc7;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-bar a {
  padding: 8px 14px;
  border-radius: 0;
  background: rgba(8, 19, 29, 0.7);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.filter-bar a.is-active,
.filter-bar a:hover {
  background: rgba(255, 99, 51, 0.12);
  border-color: rgba(255, 99, 51, 0.55);
  color: var(--paper);
}

/* Detail */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.news-detail .container {
  width: min(900px, var(--max));
}

.detail-cover {
  overflow: hidden;
  background: #0a1620;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.detail-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.rich-content {
  font-size: 16px;
  line-height: 1.9;
  color: #d5e0e6;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content pre,
.rich-content blockquote,
.rich-content table {
  margin: 0 0 1em;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  color: var(--paper);
  margin: 1.35em 0 0.55em;
  line-height: 1.3;
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.rich-content h1 { font-size: 1.75em; }
.rich-content h2 { font-size: 1.45em; }
.rich-content h3 { font-size: 1.2em; }

.rich-content ul,
.rich-content ol {
  padding-left: 1.4em;
}

.rich-content li + li {
  margin-top: 0.25em;
}

.rich-content a {
  color: var(--cyan);
}

.rich-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: rgba(37, 230, 210, 0.08);
  border: 1px solid rgba(164, 205, 223, 0.14);
}

.rich-content pre {
  padding: 14px 16px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.rich-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.rich-content blockquote {
  margin-left: 0;
  padding: 0.2em 0 0.2em 1em;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: auto;
  display: block;
}

.rich-content th,
.rich-content td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.rich-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5em 0;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.form-card,
.info-card {
  background: rgba(8, 19, 29, 0.82);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 28px;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #c5d2da;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  color: var(--paper);
  background: rgba(4, 12, 18, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(7, 18, 26, 0.95);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.alert {
  padding: 12px 14px;
  border-radius: 0;
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(37, 230, 210, 0.1);
  border-color: rgba(37, 230, 210, 0.35);
  color: var(--cyan);
}

.alert-error {
  background: rgba(255, 99, 51, 0.1);
  border-color: rgba(255, 99, 51, 0.35);
  color: #ff8f6d;
}

.info-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
}

.info-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.contact-points {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-points li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.contact-points li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.contact-phone {
  display: inline-block;
  margin: 8px 0 6px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--paper);
  transition: color 160ms ease;
}

.contact-phone:hover {
  color: var(--cyan);
}

.contact-cta {
  margin: 0 0 20px !important;
  font-size: 14px;
  color: #aebdc7 !important;
}

/* CTA band */
.cta-band {
  text-align: left;
}

.cta-band .section-head {
  margin-bottom: 28px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(8, 19, 29, 0.7);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.pagination a:hover {
  border-color: var(--cyan);
  color: var(--paper);
}

.pagination .current {
  background: rgba(255, 99, 51, 0.14);
  border-color: rgba(255, 99, 51, 0.55);
  color: var(--paper);
}

.empty {
  text-align: left;
  padding: 40px 24px;
  color: var(--muted);
  background: rgba(8, 19, 29, 0.55);
  border: 1px dashed var(--line);
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: rgba(245, 248, 250, 0.72);
  padding: 56px 0 28px;
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(164, 205, 223, 0.1);
}

.footer-brand img {
  height: 34px;
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0;
  max-width: 360px;
  line-height: 1.8;
  color: #899da5;
  font-size: 14px;
}

.footer-col h4 {
  margin: 0 0 16px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: #899da5;
  font-size: 14px;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-col p {
  margin: 0 0 12px;
  color: #899da5;
  font-size: 14px;
}

.copyright {
  padding-top: 22px;
  text-align: left;
  font-size: 12px;
  color: rgba(137, 157, 165, 0.8);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.copyright p {
  margin: 0;
}

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

.copyright a:hover {
  color: var(--paper);
}

/* Motion */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner {
  animation: fadeUp 0.7s ease both;
}

.section-head,
.card {
  animation: fadeUp 0.55s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* Responsive */
@media (max-width: 1100px) {
  :root {
    --max: min(100% - 48px, 1020px);
  }

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

@media (max-width: 1024px) {
  .grid-3,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --max: calc(100% - 32px);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  .nav {
    display: none;
    position: fixed;
    inset: 76px 0 0;
    z-index: 101;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 28px;
    background: rgba(5, 10, 15, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 76px;
    padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
    background-position: center top;
  }

  .hero > .container {
    width: 100%;
    max-width: none;
  }

  .hero-inner {
    padding-top: clamp(48px, 8vh, 80px);
    padding-bottom: clamp(48px, 6vh, 72px);
  }

  .brand-mark {
    font-size: 40px;
  }

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

  .hero-stats {
    gap: 20px;
  }

  .service-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-3,
  .grid-2,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4:not(.case-grid) {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .case-grid .card-body {
    padding: 12px 12px 14px;
  }

  .case-grid .card-body h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .case-grid .card-body p {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

  .case-grid .card-index {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .section {
    padding: 56px 0;
  }

  .page-banner {
    padding: 120px 0 44px;
  }

  .copyright {
    text-align: center;
  }
}
