/* 聚巧科技 — visual system */
:root {
  --ink: #0b1a22;
  --ink-soft: #2a4050;
  --mist: #e8eef2;
  --fog: #f4f8fa;
  --surface: #ffffff;
  --teal: #0f766e;
  --teal-bright: #1aa89a;
  --steel: #5a7a8c;
  --line: rgba(11, 26, 34, 0.1);
  --shadow: 0 24px 60px rgba(11, 26, 34, 0.08);
  --radius: 4px;
  --font-display: "Syne", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", sans-serif;
  --container: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--fog);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 168, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(90, 122, 140, 0.16), transparent 50%),
    linear-gradient(180deg, #dfe9ee 0%, var(--fog) 40%, #eef4f7 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 26, 34, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 26, 34, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 250, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 248, 250, 0.92);
}

body.has-media-hero .site-header {
  position: fixed;
  width: 100%;
}

body.has-media-hero .site-header:not(.is-scrolled) {
  background: transparent;
  color: #fff;
}

body.has-media-hero .site-header:not(.is-scrolled) .brand-name,
body.has-media-hero .site-header:not(.is-scrolled) .site-nav > .nav-list > .nav-item > a,
body.has-media-hero .site-header:not(.is-scrolled) .nav-parent {
  color: #fff;
}

body.has-media-hero .site-header:not(.is-scrolled) .brand-en {
  color: rgba(255, 255, 255, 0.65);
}

body.has-media-hero .site-header:not(.is-scrolled) .site-nav > .nav-list > .nav-item > a.is-active::after,
body.has-media-hero .site-header:not(.is-scrolled) .nav-parent.is-active::after {
  background: var(--teal-bright);
}

body.has-media-hero .site-header:not(.is-scrolled) .nav-caret {
  border-top-color: rgba(255, 255, 255, 0.85);
}

body.has-media-hero .site-header:not(.is-scrolled) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.35);
}

body.has-media-hero .site-header:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}

body.has-media-hero .site-header:not(.is-scrolled) .header-cta.btn-primary {
  background: #fff;
  color: var(--ink);
}

body.has-media-hero .site-header:not(.is-scrolled) .header-cta.btn-primary:hover {
  background: #eef4f7;
  color: var(--ink);
}


.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--teal-bright), var(--teal) 55%, #0a4f4a);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  border-right-color: transparent;
  transform: rotate(45deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-en {
  font-size: 0.68rem;
  color: var(--steel);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 1.25rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.35rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.header-cta {
  white-space: nowrap;
}

.nav-item {
  position: relative;
}

.site-nav > .nav-list > .nav-item > a,
.nav-parent {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav > .nav-list > .nav-item > a:hover,
.site-nav > .nav-list > .nav-item > a.is-active,
.nav-parent:hover,
.nav-parent.is-active,
.nav-item.is-current > .nav-parent {
  color: var(--ink);
}

.site-nav > .nav-list > .nav-item > a.is-active::after,
.nav-parent.is-active::after,
.nav-item.is-current > .nav-parent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--teal-bright);
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-soft);
  transition: transform 0.2s var(--ease), border-top-color 0.2s ease;
}

.nav-parent[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
  min-width: 200px;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 120;
}

.submenu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.submenu a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.submenu a:hover {
  background: rgba(26, 168, 154, 0.08);
  color: var(--ink);
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #152a35;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(11, 26, 34, 0.25);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: #eef4f7;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: #0a5c56;
  border-bottom-color: currentColor;
}

/* Hero — monumental full-bleed */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 0 5.5rem;
  color: #fff;
}

.hero--monumental {
  min-height: 100svh;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroKenBurns 22s var(--ease) infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 22, 0.82) 0%, rgba(8, 16, 22, 0.45) 48%, rgba(8, 16, 22, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 16, 22, 0.35) 0%, transparent 28%, rgba(8, 16, 22, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: calc(var(--header-h) + 3rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  color: #fff;
  animation: riseIn 1s var(--ease) both;
}

.hero-title {
  margin-bottom: 1rem;
  color: #fff;
  animation: riseIn 1s var(--ease) 0.12s both;
}

.hero-title-sub {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.hero-lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2rem;
  font-size: 1.08rem;
  animation: riseIn 1s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 1s var(--ease) 0.32s both;
}

/* Full-bleed media bands */
.bleed-media {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(280px, 48vh, 560px);
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.bleed-media--short {
  height: clamp(220px, 36vh, 420px);
  margin-top: 0;
}

.bleed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bleed-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 16, 22, 0.55) 100%);
}

.bleed-caption {
  position: absolute;
  left: max(1.25rem, calc((100vw - var(--container)) / 2));
  bottom: 1.4rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: #fff;
  letter-spacing: 0.04em;
}

.product-pair {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.product-pair-item {
  padding-top: 1.5rem;
  border-top: 2px solid var(--teal-bright);
}

.product-pair-item h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.product-pair-tag {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

.product-pair-item > p:not(.product-pair-tag) {
  color: var(--ink-soft);
}

.capability-grid--spaced {
  margin-top: 2.5rem;
}

.section-head--sub {
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
}

.subheading {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}


.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-lead {
  color: var(--ink-soft);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-hero {
  position: relative;
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(26, 168, 154, 0.08), transparent 70%);
  overflow: hidden;
}

.page-hero--media {
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 3.5rem;
  border-bottom: none;
  background: none;
  color: #fff;
}

.page-hero--compact {
  min-height: clamp(340px, 48vh, 480px);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 22, 0.78) 0%, rgba(8, 16, 22, 0.4) 55%, rgba(8, 16, 22, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 16, 22, 0.4) 0%, transparent 35%, rgba(8, 16, 22, 0.7) 100%);
}

.page-hero--media .page-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 2rem);
}

.page-hero-inner {
  max-width: 44rem;
}

.page-hero--media .page-lead {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow--light {
  color: var(--teal-bright);
}

.page-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

.prose-block {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.7rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 1px;
  background: var(--teal-bright);
  transform: rotate(45deg);
}

/* Services on home */
.service-rows {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row h3 {
  margin: 0;
  font-size: 1.45rem;
}

.service-row p {
  margin: 0;
  color: var(--ink-soft);
}

.service-row .text-link {
  margin-top: 0;
  white-space: nowrap;
}

/* CTA */
.section-cta {
  padding-bottom: 6rem;
}

.section-cta--media {
  position: relative;
  padding: 0;
  min-height: clamp(360px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.cta-media {
  position: absolute;
  inset: 0;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 16, 22, 0.82) 0%, rgba(8, 16, 22, 0.5) 55%, rgba(8, 16, 22, 0.35) 100%);
}

.section-cta--media .cta-inner {
  position: relative;
  z-index: 1;
  border-top: none;
  padding: 4rem 0;
  max-width: 40rem;
}

.section-cta--media .cta-inner p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-inner {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  max-width: 40rem;
}

.cta-inner p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* Product / services detail */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
}

.capability h3 {
  margin-bottom: 0.4rem;
}

.capability p {
  margin: 0;
  color: var(--ink-soft);
}

.scene-list {
  list-style: none;
  counter-reset: scene;
  display: grid;
  gap: 0;
  max-width: 48rem;
}

.scene-list li {
  counter-increment: scene;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--ink-soft);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.scene-list li::before {
  content: counter(scene, decimal-leading-zero);
  flex: 0 0 2.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--teal);
}

.scene-item {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.scene-item strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.scene-item span {
  line-height: 1.65;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.split-block {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: start;
}

.split-block--spaced {
  margin-top: 3rem;
}

.side-note {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--teal-bright);
}

.side-note-label {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}

.side-note ol,
.side-note ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  color: var(--ink-soft);
}

.side-note ol {
  counter-reset: step;
}

.side-note ol li {
  counter-increment: step;
  padding-left: 1.6rem;
  position: relative;
}

.side-note ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.value-rows {
  display: grid;
  gap: 0;
}

.value-row {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.value-row:last-child {
  border-bottom: 1px solid var(--line);
}

.value-row h3 {
  margin-bottom: 0.35rem;
}

.value-row p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-dl {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.contact-dl dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.25rem;
}

.contact-dl dd {
  margin: 0;
}

.contact-form-wrap {
  padding-top: 0.25rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(11, 26, 34, 0.18);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 168, 154, 0.18);
}

.form-alert {
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.form-alert--success {
  background: rgba(26, 168, 154, 0.12);
  color: #0a5c56;
}

.form-alert--error {
  background: rgba(192, 57, 43, 0.1);
  color: #8b2e24;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 18rem;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 254, 0.45);
  margin-bottom: 0.9rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
  margin: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Keyframes */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroKenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

/* Responsive */
@media (max-width: 1100px) {
  .product-pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .split-block,
  .contact-layout,
  .footer-grid,
  .product-pair {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 3.5rem;
  }

  .hero-scrim,
  .page-hero-scrim {
    background:
      linear-gradient(180deg, rgba(8, 16, 22, 0.45) 0%, rgba(8, 16, 22, 0.78) 100%);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    background: rgba(244, 248, 250, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 99;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .site-nav > .nav-list > .nav-item > a,
  .nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0;
    font-size: 1rem;
  }

  .site-nav > .nav-list > .nav-item > a.is-active::after,
  .nav-parent.is-active::after,
  .nav-item.is-current > .nav-parent::after {
    display: none;
  }

  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 0 0 0.4rem;
    padding: 0.25rem 0 0.25rem 0.85rem;
    border: 0;
    border-left: 2px solid rgba(26, 168, 154, 0.35);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .submenu::before {
    display: none;
  }

  .has-submenu.is-open > .submenu {
    display: grid;
    transform: none;
  }

  .submenu a {
    white-space: normal;
    padding: 0.55rem 0.4rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 3rem;
  }

  .section {
    padding: 4rem 0;
  }

  body.has-media-hero .site-header:not(.is-scrolled) .site-nav {
    background: rgba(8, 16, 22, 0.96);
    color: #fff;
  }

  body.has-media-hero .site-header:not(.is-scrolled) .site-nav > .nav-list > .nav-item > a,
  body.has-media-hero .site-header:not(.is-scrolled) .nav-parent,
  body.has-media-hero .site-header:not(.is-scrolled) .submenu a {
    color: rgba(255, 255, 255, 0.9);
  }

  body.has-media-hero .site-header:not(.is-scrolled) .submenu {
    border-left-color: rgba(26, 168, 154, 0.55);
  }

  body.has-media-hero .site-header:not(.is-scrolled) .nav-caret {
    border-top-color: rgba(255, 255, 255, 0.85);
  }

  body.has-media-hero .site-header.is-scrolled .header-cta.btn-primary {
    background: var(--ink);
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
