/* ---------- Site header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  box-sizing: border-box;
  padding-top: var(--sat);
  min-height: calc(var(--header-h) + var(--sat));
  height: auto;
  display: flex;
  align-items: stretch;
  transition: background 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
  --logo-text: var(--color-logo-blue-text);
}

.site-header.is-top {
  background: var(--gradient-header-top);
  backdrop-filter: blur(10px);
  --logo-text: #ffffff;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--color-line);
  box-shadow: var(--shadow-sm);
}

.site-header.is-scrolled .nav-link {
  color: var(--color-ink);
}

.site-header.is-scrolled .nav-link::after {
  background: var(--gradient-brand-accent);
}

.site-header.is-scrolled .lang-toggle {
  border-color: rgba(15, 23, 42, 0.18);
  color: var(--color-ink);
}

.site-header.is-scrolled .menu-toggle__bar {
  background: var(--color-ink);
}

.header-inner {
  width: min(1200px, 100%);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-left: max(1.25rem, var(--sal));
  padding-right: max(1.25rem, var(--sar));
  box-sizing: border-box;
}

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

.brand--lockup {
  gap: 0;
  padding: 0;
  line-height: 0;
  background: transparent;
  --brand-logo-h: clamp(34px, 5.5vw, 44px);
}

/* 顶栏 Logo：首屏图标彩色 + 字标反白；滚动后整图渐变色 */
.brand-logo {
  --logo-w: 1148;
  --logo-icon-w: 479;
  --logo-type-w: calc(var(--logo-w) - var(--logo-icon-w));
  --logo-icon-share: calc(var(--logo-icon-w) / var(--logo-w) * 100%);
  --logo-type-share: calc(var(--logo-type-w) / var(--logo-w) * 100%);
  flex-shrink: 0;
  line-height: 0;
  transition: height 0.4s var(--ease-soft), filter 0.45s var(--ease-soft),
    opacity 0.45s var(--ease-soft), transform 0.35s var(--ease-out);
}

.brand-logo--hero {
  display: inline-flex;
  align-items: center;
  height: var(--brand-logo-h);
  width: auto;
  aspect-ratio: 1148 / 324;
  max-width: min(220px, 72vw);
}

.brand-logo__icon,
.brand-logo__type {
  display: block;
  overflow: hidden;
  height: 100%;
  flex-shrink: 0;
}

.brand-logo__icon {
  width: var(--logo-icon-share);
}

.brand-logo__type {
  width: var(--logo-type-share);
}

.brand-logo__icon img,
.brand-logo__type img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

.brand-logo__icon img {
  width: calc(100% * var(--logo-w) / var(--logo-icon-w));
}

.brand-logo__type img {
  width: calc(100% * var(--logo-w) / var(--logo-type-w));
  margin-left: calc(-100% * var(--logo-icon-w) / var(--logo-type-w));
  transition: filter 0.45s var(--ease-soft), opacity 0.45s var(--ease-soft);
}

/* 首屏：图形标保留彩色，中英字标反白融入顶栏 */
.site-header.is-top .brand-logo__icon img {
  filter: brightness(1.06) saturate(0.92);
  opacity: 0.96;
}

.site-header.is-top .brand-logo__type img {
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.brand-logo--solid {
  display: none;
  height: var(--brand-logo-h);
  width: auto;
  aspect-ratio: 1148 / 324;
  max-width: min(220px, 72vw);
  object-fit: contain;
  object-position: left center;
}

/* 滚动后：整图渐变色字标 */
.site-header.is-scrolled .brand-logo--hero {
  display: none;
}

.site-header.is-scrolled .brand-logo--solid {
  display: block;
  filter: none;
  opacity: 1;
}

.brand:hover .brand-logo--hero,
.brand:hover .brand-logo--solid {
  transform: translateY(-1px);
}

.site-header.is-top .brand:hover .brand-logo__type img {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  transition: color 0.25s var(--ease-soft);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
  border-radius: 99px;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.lang-toggle {
  margin-left: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  transition: background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle__bars {
  width: 20px;
  height: 14px;
  position: relative;
}

.menu-toggle__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-soft),
    top 0.35s var(--ease-out);
}

.menu-toggle__bar:nth-child(1) {
  top: 0;
}

.menu-toggle__bar:nth-child(2) {
  top: 6px;
}

.menu-toggle__bar:nth-child(3) {
  top: 12px;
}

.site-header.is-scrolled .menu-toggle {
  border-color: rgba(15, 23, 42, 0.15);
  background: #fff;
}

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

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

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

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-stack);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-line);
    padding: 0.75rem 1.25rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-soft), transform 0.35s var(--ease-out);
  }

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

  .nav-link {
    color: var(--color-ink);
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
  }

  .nav-link:hover {
    background: var(--color-canvas);
    color: var(--color-brand);
  }

  .nav-link::after {
    display: none;
  }

  .lang-toggle {
    margin-left: 0;
    align-self: flex-start;
    border-color: rgba(15, 23, 42, 0.18);
    color: var(--color-ink);
  }

  .site-header.is-top .menu-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
  }

  .site-header.is-top .menu-toggle__bar {
    background: #fff;
  }

  .site-header.is-top .menu-toggle[aria-expanded="true"] {
    background: #fff;
    border-color: var(--color-line);
  }

  .site-header.is-top .menu-toggle[aria-expanded="true"] .menu-toggle__bar {
    background: var(--color-ink);
  }
}

/* ---------- Home splash (unified hero + docked highlights) ---------- */
.home-splash {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.home-splash__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-splash__media {
  position: absolute;
  inset: 0;
  background-color: #5a9ef5;
  overflow: hidden;
}

.home-splash__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(40, 120, 248, 0.2) 0%,
    rgba(72, 155, 255, 0.12) 48%,
    rgba(140, 195, 255, 0.06) 100%
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.home-splash__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  filter: brightness(1.02) saturate(1.14) hue-rotate(-6deg) contrast(1);
}

.home-splash__shade {
  position: absolute;
  inset: 0;
  background:
    var(--gradient-hero-text-scrim),
    var(--gradient-hero-top-scrim),
    var(--gradient-hero-fade),
    radial-gradient(900px 480px at 10% 6%, rgba(40, 120, 248, 0.14), transparent 58%),
    radial-gradient(640px 380px at 94% 12%, rgba(136, 56, 248, 0.07), transparent 52%);
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-stack) + 0.5rem) max(1.25rem, var(--sar)) 0.5rem max(1.25rem, var(--sal));
  box-sizing: border-box;
}

.hero__inner {
  width: min(920px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow:
    0 1px 2px rgba(0, 18, 45, 0.5),
    0 2px 12px rgba(0, 28, 65, 0.42),
    0 4px 24px rgba(0, 35, 80, 0.28);
}

.hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero__title-sep {
  display: none;
}

.hero__title [data-lang="hero_title_1"],
.hero__title [data-lang="hero_title_2"] {
  display: block;
}

.hero__lead {
  margin: 0;
  max-width: 54rem;
  margin-inline: auto;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 2px rgba(0, 18, 45, 0.45),
    0 2px 8px rgba(0, 28, 65, 0.35);
}

.hero__lead__line {
  display: block;
}

.hero__lead__line + .hero__lead__line {
  margin-top: 0.2em;
}

.hero__lead__keep {
  white-space: nowrap;
}

.highlights--docked {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 max(1.25rem, var(--sal)) max(0.75rem, var(--sab)) max(1.25rem, var(--sar));
  box-sizing: border-box;
}

.highlights__inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.highlights--docked .highlight {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.15rem 1.05rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-height: 7.5rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 28px rgba(0, 56, 200, 0.06),
    0 4px 16px rgba(136, 56, 248, 0.05);
}

.highlights--docked .highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 82%;
  height: 2.5px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: var(--gradient-card-top);
}

.highlights--docked .highlight__icon {
  display: none;
}

.highlights--docked .highlight h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--color-brand);
}

.highlights--docked .highlight__desc {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.58;
  max-width: 22em;
  margin-inline: auto;
}

.highlights--docked .highlight__line {
  display: block;
}

.highlights--docked .highlight__line + .highlight__line {
  margin-top: 0.3rem;
}

.highlight__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.4rem;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gradient-brand-accent);
  box-shadow: 0 8px 20px rgba(0, 56, 200, 0.18);
  font-size: 1rem;
}

.highlight h3 {
  margin: 0 0 0.28rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--color-ink);
}

.highlight__desc {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

.highlight__line {
  display: block;
}

@media (max-width: 900px) {
  .hero {
    flex: none;
    min-height: 52dvh;
    padding-bottom: 0.75rem;
  }

  .highlights--docked {
    padding-bottom: max(1rem, var(--sab));
  }

  .highlights__inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .highlights--docked .highlight {
    min-height: auto;
    padding: 1.1rem 1rem 1rem;
  }

  .highlights--docked .highlight h3 {
    font-size: 1.12rem;
  }

  .highlights--docked .highlight__desc {
    font-size: 0.94rem;
  }
}

@media (max-width: 520px) {
  .hero__title {
    font-size: 1.5rem;
  }
}

/* ---------- Full-page sections（顶栏下每屏 100dvh，联系+关于除外） ---------- */
.viewport-panel--fill {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.home-splash,
.page-section:not(.page-section--contact-about) {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  background: var(--color-canvas);
}

.page-section--muted {
  background: var(--color-canvas-muted);
}

.page-section__contain,
.page-section__contain--stack,
.page-section__contain--services {
  flex: 1;
  min-height: 0;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: calc(var(--header-stack) + clamp(0.5rem, 1.2vh, 0.75rem))
    max(1.25rem, var(--sar)) clamp(0.7rem, 1.4vh, 0.95rem) max(1.25rem, var(--sal));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.45rem, 1.1vh, 0.65rem);
  overflow: hidden;
}

.page-section--services {
  position: relative;
  background: var(--color-canvas);
  overflow: hidden;
}

.page-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(720px 420px at 8% 18%, rgba(40, 120, 248, 0.09), transparent 62%),
    radial-gradient(560px 360px at 92% 72%, rgba(136, 56, 248, 0.06), transparent 58%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.4) 0%, transparent 42%);
}

.page-section__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(40, 120, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 120, 248, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 15%, transparent 72%);
  opacity: 0.85;
}

.page-section#services {
  --svc-gap-banner-intro: clamp(0.7rem, 1.3vh, 0.88rem);
  --svc-gap-intro-cols: clamp(0.78rem, 1.45vh, 1rem);
  --svc-gap-cols: clamp(0.75rem, 1.45vw, 0.95rem);
  --svc-gap-highlights: clamp(0.72rem, 1.3vh, 0.9rem);
  --svc-gap-highlight-cards: clamp(0.68rem, 1.1vw, 0.85rem);
  --svc-list-pad: clamp(1rem, 1.75vh, 1.28rem);
  --svc-list-gap: clamp(0.58rem, 1.05vh, 0.75rem);

  display: flex;
  flex-direction: column;
}

.page-section#services .page-section__contain--services {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
}

.page-section#services .section-head--compact {
  margin-bottom: 0;
  flex-shrink: 0;
}

.services-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.services-layout,
.services-stage {
  display: flex;
  flex-direction: column;
  gap: var(--svc-gap-highlights);
  flex: 0 1 auto;
  min-height: 0;
}

.services-main,
.services-left {
  display: flex;
  flex-direction: column;
  gap: var(--svc-gap-intro-cols);
  min-width: 0;
  min-height: 0;
  flex: 0 1 auto;
}

.page-section#services .services-layout {
  flex: 0 1 auto;
  min-height: 0;
}

.services-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--svc-gap-highlight-cards);
  flex-shrink: 0;
}

.services-head {
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.services-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: var(--svc-gap-cols);
  align-items: stretch;
  flex: 0 1 auto;
  min-width: 0;
}

.service-banner.shell {
  background: var(--gradient-brand-accent);
}

.service-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--svc-gap-banner-intro);
  flex-shrink: 0;
  padding: clamp(0.95rem, 1.85vh, 1.15rem) clamp(1.1rem, 1.95vw, 1.35rem);
  border: 1px solid rgba(40, 120, 248, 0.22);
  background: var(--gradient-brand-accent);
  box-shadow:
    0 12px 32px rgba(0, 56, 200, 0.18),
    0 4px 14px rgba(136, 56, 248, 0.12);
}

.service-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(136, 56, 248, 0.2), transparent 50%);
  pointer-events: none;
}

.service-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
}

.service-banner__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 28, 80, 0.25);
}

.service-intro {
  margin: 0;
  font-size: clamp(0.88rem, 1vw, 0.96rem);
  line-height: 1.72;
  color: var(--color-ink);
  flex-shrink: 0;
}

.page-section#services .service-intro.shell--soft {
  padding: clamp(0.9rem, 1.55vh, 1.1rem) clamp(1rem, 1.7vw, 1.25rem);
}

.service-intro.shell--soft::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 99px;
  background: var(--gradient-card-top);
  opacity: 0.75;
}

.service-block.shell {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(40, 120, 248, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-block {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: hidden;
}

.service-block.shell--lift:hover {
  transform: translateY(-5px);
  border-color: rgba(40, 120, 248, 0.24);
  box-shadow:
    0 14px 40px rgba(0, 56, 200, 0.1),
    0 4px 14px rgba(136, 56, 248, 0.06);
}

.service-block__title {
  margin: 0;
  padding: clamp(0.72rem, 1.35vh, 0.9rem) clamp(0.95rem, 1.45vw, 1.08rem);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 700;
  color: #fff;
  background: var(--gradient-brand);
  border-radius: 0;
  flex-shrink: 0;
  position: relative;
}

.service-block__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.service-list {
  flex: 0 1 auto;
  margin: 0;
  list-style: none;
  padding: var(--svc-list-pad) clamp(1rem, 1.6vw, 1.2rem) var(--svc-list-pad)
    clamp(1.1rem, 1.7vw, 1.28rem);
  font-size: clamp(0.86rem, 0.98vw, 0.94rem);
  line-height: 1.72;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--svc-list-gap);
}

.service-list li {
  position: relative;
  padding-left: 1.35rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--color-accent));
  box-shadow: 0 0 0 3px var(--color-accent-soft), 0 0 0 5px var(--color-purple-soft);
  transition: transform 0.35s var(--ease-out);
}

.service-block:hover .service-list li::before {
  transform: scale(1.08);
}

.service-list li + li {
  margin-top: 0;
}

.service-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: clamp(6.35rem, 12.5vh, 7.65rem);
  padding: clamp(0.95rem, 1.65vh, 1.12rem) clamp(0.8rem, 1.2vw, 0.98rem);
  text-align: center;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.35s var(--ease-soft);
}

.service-highlight.shell--glass {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.55);
}

.service-highlight.shell--glass:hover {
  transform: translateY(-5px);
  border-color: rgba(40, 120, 248, 0.22);
  box-shadow:
    0 14px 40px rgba(0, 56, 200, 0.1),
    0 4px 14px rgba(136, 56, 248, 0.06);
}

.service-highlight__icon {
  flex-shrink: 0;
  width: clamp(44px, 4.8vh, 52px);
  height: clamp(44px, 4.8vh, 52px);
  margin: 0 0 0.2rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(1rem, 1.5vh, 1.15rem);
  background: var(--gradient-brand-accent);
  box-shadow:
    0 6px 18px rgba(0, 56, 200, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.service-highlight:hover .service-highlight__icon {
  transform: scale(1.06);
  box-shadow:
    0 8px 22px rgba(0, 56, 200, 0.28),
    0 0 20px rgba(136, 56, 248, 0.15);
}

.service-highlight__body {
  min-width: 0;
}

.service-highlight__title {
  margin: 0 0 0.3rem;
  font-size: clamp(0.92rem, 1.02vw, 1rem);
  font-weight: 800;
  color: var(--color-brand);
}

.service-highlight__desc {
  margin: 0;
  font-size: clamp(0.82rem, 0.92vw, 0.88rem);
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.service-highlight__line {
  display: block;
}

.service-highlight__line + .service-highlight__line {
  margin-top: 0.12rem;
}

@media (max-width: 900px) {
  .services-body {
    flex: none;
  }

  .services-main,
  .services-left {
    flex: none;
  }

  .services-head {
    width: 100%;
  }

  .services-cols {
    grid-template-columns: 1fr;
    flex: none;
  }

  .service-list {
    display: block;
    justify-content: initial;
  }

  .service-list li + li {
    margin-top: 0;
  }

  .service-block {
    height: auto;
  }

  .services-highlights {
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 2vh, 1rem);
  }
}

@media (max-width: 640px) {
  .services-cols {
    grid-template-columns: 1fr;
    row-gap: var(--svc-gap-cols);
  }
}

.page-section--services .services-stack {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* 联系 + 关于：同一页展示，自然高度滚动 */
.page-section--contact-about {
  position: relative;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
  display: block;
  padding: 0;
  background: var(--color-canvas-muted);
}

.page-section--contact-about .page-section__contain--stack {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  overflow: visible;
  max-height: none;
  padding-top: calc(var(--header-stack) + clamp(1.25rem, 3vh, 2rem));
  padding-bottom: clamp(1.25rem, 2.5vh, 2rem);
}

.page-section--contact-about .contact {
  flex-shrink: 0;
}

.page-section--contact-about .about-fold {
  width: 100%;
  flex-shrink: 0;
  margin-top: clamp(1.25rem, 2.5vh, 1.75rem);
  padding-top: clamp(1rem, 2vh, 1.35rem);
  border-top: none;
  overflow: visible;
  scroll-margin-top: var(--header-stack);
  position: relative;
}

.page-section--contact-about .about-fold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(40, 120, 248, 0.28) 20%,
    rgba(136, 56, 248, 0.28) 80%,
    transparent 100%
  );
}

.page-section--contact-about .about-fold .section-head--compact {
  max-width: none;
  width: 100%;
  margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
}

.page-section--contact-about .about-fold .prose--compact {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  font-size: clamp(0.82rem, 0.92vw, 0.9rem);
  line-height: 1.62;
}

.page-section#contact .prose {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.page-section--contact-about .site-footer {
  flex-shrink: 0;
  width: 100%;
}

.page-section .section-head--compact {
  margin-bottom: clamp(0.45rem, 1.1vh, 0.75rem);
}

.page-section--services .section-lead--lines {
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  line-height: 1.65;
}

.services-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vh, 0.75rem);
  min-height: 0;
}

.page-section--services .split-panel {
  padding: clamp(0.85rem, 1.5vw, 1.15rem);
}

.page-section--services .split__media {
  aspect-ratio: 16 / 10;
}

.page-section--services .split__heading {
  margin-bottom: 0.65rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.page-section--services .tick-list--compact li {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.pills-panel--compact {
  padding: clamp(0.85rem, 1.5vw, 1.15rem);
}

.page-section--services .pills__title {
  margin-bottom: 0.75rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.page-section--services .pills__grid {
  gap: 0.55rem;
}

.page-section--services .pill {
  padding: 0.65rem 0.75rem;
  font-size: 0.84rem;
}

.page-section--services .pill i {
  font-size: 0.95rem;
}

/* ---------- Split rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  margin-bottom: 0;
}

.split-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.page-section--muted .split-panel {
  background: var(--color-surface);
}

.split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 11;
  background: var(--color-canvas-muted);
}

.split-panel .split__media {
  border: none;
  box-shadow: none;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.8s var(--ease-out);
}

.split:hover .split__media img {
  transform: scale(1.04);
}

.split__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.split__body--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Product types ---------- */
.pills-panel {
  width: 100%;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}

.pills__title {
  text-align: center;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 800;
  margin: 0 0 1.25rem;
  color: var(--color-ink);
}

.pills__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
  font-weight: 650;
  font-size: 0.92rem;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease-soft),
    box-shadow 0.4s var(--ease-out);
}

.pill i {
  color: var(--color-brand);
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 56, 200, 0.22);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 720px) {
  .pills__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Technology（制备设备 + 填料柱 + 团队） ---------- */
.page-section#technology {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 与核心服务屏对齐；细节断点见 responsive.css */
  --tech-top-cols: minmax(0, 1.55fr) minmax(0, 1fr);
  --tech-head-gap: clamp(0.4rem, 0.9vh, 0.65rem);
  --tech-pad-top-extra: clamp(0.2rem, 0.45vh, 0.4rem);
  --tech-pad-bottom: clamp(0.5rem, 1vh, 0.75rem);
  --tech-eq-img-min-h: clamp(4.75rem, 12.5vh, 6.75rem);
  --tech-eq-img-max-h: clamp(5.75rem, min(17vh, 16vw), 9rem);
  --tech-col-img-min-h: clamp(3.85rem, min(11vh, 12vw), 5.5rem);
  --tech-col-img-max-h: clamp(5.75rem, min(16vh, 17vw), 8.25rem);
  --tech-col-media-gap: clamp(0.6rem, 1.1vh, 0.85rem);
  --tech-col-thumb-pad: clamp(0.35rem, 0.75vh, 0.55rem);
  --tech-grid-gap: clamp(0.55rem, 1vw, 0.82rem);
  --tech-grid-col-gap: clamp(0.7rem, 1.15vw, 0.95rem);
  --tech-grid-row-gap: clamp(0.55rem, 1vh, 0.82rem);
  --tech-card-pad: clamp(0.62rem, 1.1vw, 0.92rem);
  --tech-caption-size: clamp(0.68rem, 0.74rem + 0.1vw, 0.78rem);
  --tech-note-size: clamp(0.74rem, 0.8rem + 0.12vw, 0.86rem);
  --tech-board-gap: clamp(0.48rem, 0.9vh, 0.68rem);
  --tech-top-gap: clamp(0.72rem, 1.35vw, 1.05rem);
}

.page-section__ambient--muted {
  background:
    radial-gradient(680px 400px at 88% 22%, rgba(136, 56, 248, 0.08), transparent 60%),
    radial-gradient(620px 380px at 12% 78%, rgba(40, 120, 248, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(243, 248, 255, 0.55) 0%, transparent 50%);
}

.page-section__ambient--muted::after {
  opacity: 0.7;
}

.page-section#technology .page-section__contain--stack {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--tech-head-gap);
  flex: 1;
  min-height: 0;
  padding: calc(var(--header-stack) + var(--panel-pad-block) * 0.82 + var(--tech-pad-top-extra))
    max(var(--panel-pad-inline), var(--sar)) var(--tech-pad-bottom)
    max(var(--panel-pad-inline), var(--sal));
  overflow: hidden;
}

.page-section#technology .section-head--compact {
  margin-bottom: 0;
  flex-shrink: 0;
}

.page-section#technology .section-head .section-title {
  margin-bottom: 0;
}

.tech-board {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--tech-board-gap);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.tech-board__top {
  display: grid;
  grid-template-columns: var(--tech-top-cols);
  gap: var(--tech-top-gap);
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.tech-equipment,
.tech-columns {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  height: 100%;
  gap: clamp(0.55rem, 1vh, 0.72rem);
  min-height: 0;
  padding: var(--tech-card-pad);
  overflow: hidden;
}

.tech-equipment.shell--glass,
.tech-columns.shell--glass {
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.35s var(--ease-soft);
}

.tech-equipment.shell--glass:hover,
.tech-columns.shell--glass:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 44px rgba(0, 56, 200, 0.1),
    0 6px 20px rgba(136, 56, 248, 0.07);
}

.tech-equipment__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--tech-grid-col-gap);
  row-gap: var(--tech-grid-row-gap);
  flex: 1 1 auto;
  min-height: 0;
  align-content: stretch;
}

.tech-equipment__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.28rem, 0.5vh, 0.42rem);
  min-width: 0;
  min-height: 0;
  opacity: 0;
  transform: translateY(10px);
}

.tech-board.reveal.is-visible .tech-equipment__item {
  animation: tech-item-in 0.55s var(--ease-out) forwards;
}

.tech-board.reveal.is-visible .tech-equipment__item:nth-child(1) {
  animation-delay: 0.05s;
}

.tech-board.reveal.is-visible .tech-equipment__item:nth-child(2) {
  animation-delay: 0.1s;
}

.tech-board.reveal.is-visible .tech-equipment__item:nth-child(3) {
  animation-delay: 0.15s;
}

.tech-board.reveal.is-visible .tech-equipment__item:nth-child(4) {
  animation-delay: 0.2s;
}

.tech-board.reveal.is-visible .tech-equipment__item:nth-child(5) {
  animation-delay: 0.25s;
}

.tech-board.reveal.is-visible .tech-equipment__item:nth-child(6) {
  animation-delay: 0.3s;
}

.tech-equipment__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: var(--tech-eq-img-min-h);
  padding: clamp(0.28rem, 0.6vh, 0.48rem);
  border: 1px solid rgba(40, 120, 248, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: linear-gradient(180deg, #f7faff 0%, #eef4fc 100%);
  box-shadow: 0 4px 14px rgba(0, 56, 200, 0.06);
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease-soft),
    box-shadow 0.4s var(--ease-out);
}

.tech-columns__thumb {
  position: relative;
  width: 100%;
  border: 1px solid rgba(40, 120, 248, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(0, 56, 200, 0.06);
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease-soft),
    box-shadow 0.4s var(--ease-out);
}

.tech-equipment__thumb::before,
.tech-columns__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(0, 42, 120, 0.22) 100%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
  pointer-events: none;
}

.tech-equipment__thumb:hover,
.tech-columns__thumb:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 120, 248, 0.32);
  box-shadow:
    0 10px 28px rgba(0, 56, 200, 0.12),
    0 0 0 1px rgba(136, 56, 248, 0.08);
}

.tech-equipment__thumb:hover::before,
.tech-columns__thumb:hover::before {
  opacity: 1;
}

.tech-equipment__thumb img {
  width: 100%;
  height: auto;
  max-height: var(--tech-eq-img-max-h);
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.55s var(--ease-out);
}

.tech-equipment__thumb:hover img {
  transform: scale(1.06);
}

.tech-columns__thumb:hover img {
  transform: scale(1.03);
}

.tech-equipment__caption {
  margin: 0;
  flex-shrink: 0;
  text-align: center;
  font-size: var(--tech-caption-size);
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--color-ink-muted);
  transition: color 0.3s var(--ease-soft);
}

.tech-equipment__item:hover .tech-equipment__caption {
  color: var(--color-brand);
}

.tech-equipment__note,
.tech-columns__note {
  margin: 0;
  margin-top: auto;
  flex-shrink: 0;
  padding: clamp(0.4rem, 0.7vh, 0.55rem) clamp(0.62rem, 1vw, 0.82rem);
  text-align: left;
  font-size: var(--tech-note-size);
  line-height: 1.38;
  font-weight: 650;
  color: var(--color-brand);
  overflow-wrap: anywhere;
  word-break: break-word;
  background: rgba(40, 120, 248, 0.06);
  border: 1px solid rgba(40, 120, 248, 0.12);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(0, 56, 200, 0.04);
}

.tech-equipment__carousel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: clamp(0.35rem, 0.8vh, 0.5rem);
}

.tech-equipment__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.tech-equipment__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(40, 120, 248, 0.25);
  cursor: pointer;
  transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}

.tech-equipment__dot.is-active {
  background: var(--color-brand);
  transform: scale(1.25);
}

.tech-columns__media {
  display: flex;
  flex-direction: column;
  gap: var(--tech-col-media-gap);
  flex: 1 1 auto;
  min-height: 0;
  justify-content: stretch;
}

.tech-columns__media .tech-columns__thumb {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tech-col-img-min-h);
  height: auto;
  max-height: none;
  padding: var(--tech-col-thumb-pad);
  aspect-ratio: auto;
  background: linear-gradient(180deg, #f7faff 0%, #eef4fc 100%);
}

.tech-columns__thumb img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: var(--tech-col-img-max-h);
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--ease-out);
}

.tech-equipment__zoom,
.tech-columns__zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  background: linear-gradient(
    135deg,
    rgba(0, 56, 200, 0.45) 0%,
    rgba(136, 56, 248, 0.38) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
}

.tech-equipment__zoom i,
.tech-columns__zoom i {
  transform: scale(0.85);
  transition: transform 0.35s var(--ease-out);
}

.tech-equipment__thumb:hover .tech-equipment__zoom,
.tech-columns__thumb:hover .tech-columns__zoom {
  opacity: 1;
}

.tech-equipment__thumb:hover .tech-equipment__zoom i,
.tech-columns__thumb:hover .tech-columns__zoom i {
  transform: scale(1);
}

.tech-team-band {
  position: relative;
  flex-shrink: 0;
  padding: clamp(0.58rem, 1.05vh, 0.78rem) clamp(0.88rem, 1.55vw, 1.15rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.tech-team-band.shell--soft {
  border-color: rgba(40, 120, 248, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 248, 255, 0.88) 100%),
    linear-gradient(rgba(40, 120, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 120, 248, 0.03) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 14px 40px rgba(0, 56, 200, 0.08),
    0 4px 14px rgba(136, 56, 248, 0.05);
}

.tech-team-band::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -15%;
  width: 45%;
  height: 140%;
  background: radial-gradient(circle, rgba(136, 56, 248, 0.08) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.tech-team-band__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.3rem;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 800;
  text-align: center;
  background: var(--gradient-brand-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tech-team-band__desc {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 46em;
  font-size: clamp(0.78rem, 0.88vw, 0.86rem);
  line-height: 1.52;
  color: var(--color-ink-muted);
}

.tech-team-band__line {
  display: block;
}

.tech-team-band__line + .tech-team-band__line {
  margin-top: 0.15em;
}

/* 桌面并排：设备网格均分纵向空间，图片随格子变高 */
@media (min-width: 901px) {
  .tech-equipment__grid {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .tech-equipment__item {
    height: 100%;
  }

  .tech-equipment__thumb img {
    max-height: min(100%, var(--tech-eq-img-max-h));
    width: auto;
    max-width: 100%;
  }

  .tech-columns__thumb img {
    max-height: min(100%, var(--tech-col-img-max-h));
    width: auto;
    max-width: 100%;
  }
}

/* 堆叠/窄屏：恢复自然高度，避免挤压重叠 */
@media (max-width: 900px) {
  .tech-equipment__grid {
    flex: 0 0 auto;
    grid-template-rows: none;
    align-content: start;
  }

  .tech-equipment__item {
    height: auto;
  }

  .tech-equipment__thumb {
    flex: none;
  }

  .tech-equipment__thumb img,
  .tech-columns__thumb img {
    width: 100%;
    max-width: 100%;
    max-height: var(--tech-eq-img-max-h);
  }

  .tech-columns__thumb img {
    max-height: var(--tech-col-img-max-h);
  }

  .tech-columns__media {
    flex: 0 0 auto;
  }

  .tech-columns__media .tech-columns__thumb {
    flex: 0 0 auto;
  }
}

@keyframes tech-item-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .tech-board.reveal.is-visible .tech-equipment__item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Process section (full-viewport timeline) ---------- */
.page-section#process {
  position: relative;
  overflow: hidden;
}

.page-section#process .page-section__contain--stack {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2.8vh, 1.85rem);
}

.page-section#process .section-head--compact {
  flex-shrink: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.page-section#process .features {
  margin-top: clamp(1rem, 2vh, 1.5rem);
}

.features--glass {
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.page-section#process .feature {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 1.8vh, 1.2rem) clamp(0.85rem, 1.4vw, 1rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: clamp(7rem, 14vh, 8.5rem);
  opacity: 0;
  transform: translateY(12px);
}

.features--glass.reveal.is-visible .feature {
  animation: process-step-in 0.6s var(--ease-out) forwards;
}

.features--glass.reveal.is-visible .feature:nth-child(1) {
  animation-delay: 0.12s;
}

.features--glass.reveal.is-visible .feature:nth-child(2) {
  animation-delay: 0.22s;
}

.features--glass.reveal.is-visible .feature:nth-child(3) {
  animation-delay: 0.32s;
}

.page-section#process .feature.shell--glass {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.55);
}

.page-section#process .feature.shell--glass:hover {
  transform: translateY(-5px);
  border-color: rgba(40, 120, 248, 0.22);
  box-shadow:
    0 14px 40px rgba(0, 56, 200, 0.1),
    0 4px 14px rgba(136, 56, 248, 0.06);
}

.page-section#process .feature__icon {
  width: clamp(48px, 5vh, 56px);
  height: clamp(48px, 5vh, 56px);
  margin: 0 0 0.35rem;
  border-radius: 14px;
  color: #fff;
  background: var(--gradient-brand-accent);
  border: none;
  box-shadow:
    0 6px 18px rgba(0, 56, 200, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  font-size: clamp(1.1rem, 1.5vh, 1.25rem);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.page-section#process .feature:hover .feature__icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow:
    0 8px 22px rgba(0, 56, 200, 0.28),
    0 0 18px rgba(136, 56, 248, 0.12);
}

.page-section#process .feature strong {
  display: block;
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  font-weight: 800;
  color: var(--color-brand);
  margin: 0;
}

.page-section#process .feature span {
  color: var(--color-ink-muted);
  font-size: clamp(0.84rem, 0.95vw, 0.92rem);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .features--glass.reveal.is-visible .feature {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Process timeline (tech zigzag) ---------- */
.process-board {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(1080px, 100%);
  margin-inline: auto;
  margin-top: 0;
  min-height: clamp(26rem, 58vh, 38rem);
  padding: clamp(2rem, 4.5vh, 3rem) clamp(1.05rem, 2vw, 1.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(40, 120, 248, 0.2);
  background:
    linear-gradient(90deg, #2b7cf8 0%, #3d72f6 28%, #5a68f2 52%, #7350ef 72%, #8838f8 100%) top center /
      82% 3px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 248, 255, 0.9) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 20px 52px rgba(0, 56, 200, 0.08),
    0 6px 20px rgba(136, 56, 248, 0.05);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.process-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(40, 120, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 120, 248, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 20%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.process-timeline {
  --process-node: clamp(56px, 6.8vh, 68px);
  --process-rail: clamp(7px, 0.85vh, 9px);
  --process-stem: clamp(34px, 5.5vh, 48px);
  --process-lane: clamp(5.25rem, 13vh, 7.25rem);
  position: relative;
  z-index: 1;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0 clamp(0.15rem, 0.5vw, 0.35rem);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  align-content: center;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: calc(100% / 12);
  right: calc(100% / 12);
  top: calc(50% + 0.15rem);
  height: var(--process-rail);
  background: rgba(0, 56, 200, 0.1);
  border-radius: 99px;
  box-shadow:
    0 0 0 1px rgba(40, 120, 248, 0.12) inset,
    0 0 18px rgba(40, 120, 248, 0.08);
  z-index: 0;
  transform: translateY(-50%);
}

.process-timeline::after {
  content: "";
  position: absolute;
  left: calc(100% / 12);
  top: calc(50% + 0.15rem);
  width: 0;
  height: var(--process-rail);
  border-radius: 99px;
  background: var(--gradient-brand-accent);
  background-size: 200% 100%;
  box-shadow:
    0 0 12px rgba(40, 120, 248, 0.45),
    0 0 24px rgba(136, 56, 248, 0.2);
  z-index: 0;
  transform: translateY(-50%);
  transition: width 1.4s var(--ease-out);
}

.process-board.reveal.is-visible .process-timeline::after {
  width: calc(100% - 100% / 6);
  animation: process-rail-shimmer 4s linear infinite;
}

.process-timeline__item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows:
    minmax(var(--process-lane), auto) var(--process-stem) var(--process-node) var(--process-stem)
    minmax(var(--process-lane), auto);
  justify-items: center;
  text-align: center;
  min-height: clamp(15rem, 36vh, 21rem);
  opacity: 0;
  transform: translateY(12px);
}

.process-board.reveal.is-visible .process-timeline__item {
  animation: process-step-in 0.65s var(--ease-out) forwards;
}

.process-board.reveal.is-visible .process-timeline__item:nth-child(1) {
  animation-delay: 0.08s;
}

.process-board.reveal.is-visible .process-timeline__item:nth-child(2) {
  animation-delay: 0.18s;
}

.process-board.reveal.is-visible .process-timeline__item:nth-child(3) {
  animation-delay: 0.28s;
}

.process-board.reveal.is-visible .process-timeline__item:nth-child(4) {
  animation-delay: 0.38s;
}

.process-board.reveal.is-visible .process-timeline__item:nth-child(5) {
  animation-delay: 0.48s;
}

.process-board.reveal.is-visible .process-timeline__item:nth-child(6) {
  animation-delay: 0.58s;
}

.process-timeline__item--above .process-timeline__content {
  grid-row: 1;
  align-self: end;
  padding-bottom: 0.35rem;
}

.process-timeline__item--above .process-timeline__stem {
  grid-row: 2;
}

.process-timeline__item--above .process-timeline__node {
  grid-row: 3;
}

.process-timeline__item--below .process-timeline__node {
  grid-row: 3;
  align-self: start;
}

.process-timeline__item--below .process-timeline__stem {
  grid-row: 4;
}

.process-timeline__item--below .process-timeline__content {
  grid-row: 5;
  align-self: start;
  padding-top: 0.35rem;
}

.process-timeline__node {
  position: relative;
  width: var(--process-node);
  height: var(--process-node);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 800;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #fff;
  background: var(--gradient-brand-accent);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 0 3px rgba(40, 120, 248, 0.18),
    0 8px 22px rgba(0, 56, 200, 0.22),
    0 0 28px rgba(136, 56, 248, 0.14);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.process-timeline__node::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(40, 120, 248, 0.35);
  opacity: 0.65;
  animation: process-node-pulse 2.8s ease-out infinite;
}

.process-timeline__item:hover .process-timeline__node {
  transform: scale(1.06);
  box-shadow:
    0 0 0 4px rgba(40, 120, 248, 0.22),
    0 10px 28px rgba(0, 56, 200, 0.28),
    0 0 36px rgba(136, 56, 248, 0.2);
}

.process-timeline__stem {
  position: relative;
  width: 2px;
  height: var(--process-stem);
  background: linear-gradient(
    180deg,
    rgba(40, 120, 248, 0.15) 0%,
    var(--color-accent) 45%,
    var(--color-accent-purple) 100%
  );
  box-shadow: 0 0 8px rgba(40, 120, 248, 0.35);
}

.process-timeline__item--above .process-timeline__stem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(40, 120, 248, 0.55);
  transform: translate(-50%, -50%);
}

.process-timeline__item--below .process-timeline__stem::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-purple);
  box-shadow: 0 0 8px rgba(136, 56, 248, 0.45);
  transform: translate(-50%, 50%);
}

.process-timeline__content {
  position: relative;
  max-width: 11.5em;
  padding: clamp(0.75rem, 1.35vh, 0.95rem) clamp(0.65rem, 1.1vw, 0.85rem);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(40, 120, 248, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 14px rgba(0, 56, 200, 0.06),
    0 1px 4px rgba(136, 56, 248, 0.04);
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft),
    transform 0.35s var(--ease-out);
}

.process-timeline__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 99px;
  background: var(--gradient-card-top);
  opacity: 0.85;
}

.process-timeline__item:hover .process-timeline__content {
  border-color: rgba(40, 120, 248, 0.28);
  box-shadow: 0 8px 22px rgba(0, 56, 200, 0.1);
  transform: translateY(-2px);
}

.process-timeline__title {
  display: block;
  margin: 0 0 0.32rem;
  font-size: clamp(0.96rem, 1.12vw, 1.06rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.35;
}

.process-timeline__desc {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: clamp(0.8rem, 0.92vw, 0.88rem);
  line-height: 1.58;
}

.process-timeline__line {
  display: block;
}

@keyframes process-step-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes process-rail-shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes process-node-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-board.reveal.is-visible .process-timeline::after {
    animation: none;
  }

  .process-timeline__node::before {
    animation: none;
  }

  .process-board.reveal.is-visible .process-timeline__item {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .process-timeline::after {
    width: calc(100% - 100% / 6);
    transition: none;
  }
}

.feature {
  padding: 1.1rem 0.85rem;
  text-align: center;
}

.feature__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--color-brand);
  background: var(--color-brand-soft);
  border: 1px solid rgba(0, 56, 200, 0.12);
  font-size: 1.35rem;
}

.feature strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature span {
  color: var(--color-ink-muted);
  font-size: 0.98rem;
}

.page-section#process .feature strong,
.page-section#process .feature span {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .process-board {
    flex: none;
    min-height: auto;
    padding: clamp(1.15rem, 2.4vh, 1.5rem) clamp(0.75rem, 1.4vw, 1rem);
  }

  .process-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.25rem;
  }

  .process-timeline::before,
  .process-timeline::after {
    display: none;
  }

  .process-timeline__item {
    min-height: auto;
    grid-template-rows: auto auto auto;
    gap: 0.35rem;
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .process-timeline__item--above .process-timeline__content,
  .process-timeline__item--below .process-timeline__content {
    grid-row: 1;
    align-self: auto;
    padding: clamp(0.55rem, 1vh, 0.7rem) clamp(0.5rem, 0.9vw, 0.65rem);
  }

  .process-timeline__item--above .process-timeline__stem,
  .process-timeline__item--below .process-timeline__stem {
    display: none;
  }

  .process-timeline__item--above .process-timeline__node,
  .process-timeline__item--below .process-timeline__node {
    grid-row: 2;
  }
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-section#process .process-board {
    min-height: auto;
  }

  .page-section#process .process-timeline__item {
    min-height: auto;
  }

  .process-board {
    flex: none;
    min-height: auto;
    padding: 1rem 0.85rem;
  }

  .process-timeline {
    --process-mobile-node: 44px;
    --process-mobile-card-h: clamp(5.15rem, 15.5vw, 5.65rem);
    grid-template-columns: 1fr;
    row-gap: 0.65rem;
  }

  .process-timeline__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    min-height: auto;
    text-align: left;
    padding-block: 0.15rem;
    border-bottom: 1px solid rgba(40, 120, 248, 0.12);
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .process-timeline__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .process-timeline__stem {
    display: none !important;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
  }

  .process-timeline__node {
    flex: 0 0 var(--process-mobile-node);
    width: var(--process-mobile-node);
    height: var(--process-mobile-node);
    font-size: 1rem;
    order: -1;
    align-self: center;
  }

  .process-timeline__item--above .process-timeline__node,
  .process-timeline__item--below .process-timeline__node {
    grid-column: unset;
    grid-row: unset;
  }

  .process-timeline__item--above .process-timeline__content,
  .process-timeline__item--below .process-timeline__content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: var(--process-mobile-card-h);
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(0.55rem, 1vh, 0.7rem) clamp(0.65rem, 2.5vw, 0.85rem);
    grid-column: unset;
    grid-row: unset;
  }

  .process-timeline__title {
    margin-bottom: 0.28rem;
  }

  .process-timeline__desc {
    min-height: calc(2 * 1.58em);
  }

  .process-timeline__content:not(:has(.process-timeline__desc))::after {
    content: "";
    display: block;
    min-height: calc(2 * 1.58em);
  }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.contact--cards .contact-card,
.contact--cards .qr {
  opacity: 0;
  transform: translateY(14px);
}

.contact--cards.reveal.is-visible .contact-card {
  animation: process-step-in 0.65s var(--ease-out) 0.08s forwards;
}

.contact--cards.reveal.is-visible .qr {
  animation: process-step-in 0.65s var(--ease-out) 0.2s forwards;
}

.contact-card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
}

.contact-card.shell--glass {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.6);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.contact-card.shell--glass:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 44px rgba(0, 56, 200, 0.1),
    0 6px 20px rgba(136, 56, 248, 0.07);
}

.contact-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: clamp(0.95rem, 1.6vh, 1.1rem) 0;
  border-bottom: 1px solid rgba(40, 120, 248, 0.1);
  border-radius: var(--radius-md);
  transition: background 0.3s var(--ease-soft), padding-inline 0.3s var(--ease-soft);
}

.contact-row:hover {
  background: rgba(40, 120, 248, 0.04);
  padding-inline: 0.5rem;
}

.contact-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-ico {
  width: clamp(46px, 5vh, 52px);
  height: clamp(46px, 5vh, 52px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  background: var(--gradient-brand-accent);
  border: none;
  box-shadow:
    0 6px 16px rgba(0, 56, 200, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.contact-row:hover .contact-ico {
  transform: scale(1.05);
  box-shadow:
    0 8px 20px rgba(0, 56, 200, 0.25),
    0 0 16px rgba(136, 56, 248, 0.12);
}

.contact-row h4 {
  margin: 0 0 0.25rem;
  font-size: clamp(0.95rem, 1.05vw, 1rem);
  font-weight: 800;
  color: var(--color-brand);
}

.contact-row p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: clamp(0.88rem, 0.98vw, 0.95rem);
  line-height: 1.55;
}

.contact-row a {
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(40, 120, 248, 0.25);
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}

.contact-row a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.25rem, 2vw, 1.5rem);
  text-align: center;
}

.qr.shell--glass {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.6);
}

.qr.shell--glass:hover {
  transform: translateY(-5px);
}

.qr__frame {
  position: relative;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(40, 120, 248, 0.12) 0%, rgba(136, 56, 248, 0.1) 100%);
  box-shadow: 0 0 0 1px rgba(40, 120, 248, 0.15);
}

.qr img {
  width: clamp(140px, 16vw, 180px);
  height: clamp(140px, 16vw, 180px);
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
  display: block;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.qr:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 56, 200, 0.12);
}

.qr p {
  margin: clamp(0.75rem, 1.2vh, 0.95rem) 0 0;
  color: var(--color-ink-muted);
  font-size: clamp(0.88rem, 0.98vw, 0.95rem);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .contact--cards .contact-card,
  .contact--cards .qr {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .qr {
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
}

.prose {
  max-width: 900px;
  margin-inline: auto;
  color: var(--color-ink-muted);
  line-height: 1.95;
}

.prose--compact {
  line-height: 1.75;
  font-size: 0.95rem;
}

.prose__block--primary h3 {
  font-size: 1.2rem;
  font-weight: 850;
  color: var(--color-ink);
}

.page-section#contact .prose__block--primary.shell--soft {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(1rem, 1.8vw, 1.25rem) clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0;
  border-color: rgba(40, 120, 248, 0.14);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    border-color 0.3s var(--ease-soft);
}

.page-section#contact .prose__block--primary.shell--soft:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 120, 248, 0.22);
  box-shadow:
    0 12px 32px rgba(0, 56, 200, 0.08),
    0 4px 12px rgba(136, 56, 248, 0.05);
}

.page-section#contact .prose__block--primary h3 {
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.55rem;
}

.prose__block--primary p {
  color: var(--color-ink-muted);
  font-size: 0.98rem;
}

.page-section#contact .prose__block--primary p {
  font-size: clamp(0.86rem, 0.96vw, 0.94rem);
  line-height: 1.68;
}

.prose__block--primary + .prose__block--secondary {
  margin-top: 1.25rem;
}

.prose__block--secondary {
  padding-top: 1rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
  opacity: 0.78;
}

.prose__block--secondary h3,
.prose__block--secondary p {
  font-style: italic;
  font-weight: 450;
  color: var(--color-ink-muted);
}

.prose__block--secondary h3 {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.prose__block--secondary p {
  font-size: 0.82rem;
  line-height: 1.65;
  opacity: 0.92;
}

.prose__block + .prose__block {
  margin-top: 2rem;
}

.page-section#contact .prose__block + .prose__block {
  margin-top: clamp(0.85rem, 1.5vh, 1.1rem);
}

.page-section#contact .about-fold.reveal.is-visible .prose__block--primary {
  animation: process-step-in 0.6s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(12px);
}

.page-section#contact .about-fold.reveal.is-visible .prose__block--primary:nth-child(1) {
  animation-delay: 0.1s;
}

.page-section#contact .about-fold.reveal.is-visible .prose__block--primary:nth-child(2) {
  animation-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  .page-section#contact .about-fold.reveal.is-visible .prose__block--primary {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.prose h3 {
  margin: 0 0 0.5rem;
  color: var(--color-ink);
  font-size: 1.15rem;
  font-weight: 850;
}

.prose p {
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 2.5rem max(1.25rem, var(--sal)) max(3rem, calc(1.5rem + var(--sab)))
    max(1.25rem, var(--sar));
  background: var(--gradient-brand-accent);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 120% at 15% 50%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 100% at 88% 40%, rgba(136, 56, 248, 0.2), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45) 50%,
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

.site-footer p {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 28, 80, 0.2);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: max(1rem, var(--sat)) max(1rem, var(--sar)) max(1rem, var(--sab))
    max(1rem, var(--sal));
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(40, 120, 248, 0.25), transparent 55%),
    rgba(0, 42, 150, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-soft);
}

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

.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(1100px, 100%);
  max-height: min(82vh, 100%);
  max-height: min(82dvh, 100%);
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lightbox__close {
  position: absolute;
  top: max(1rem, var(--sat));
  right: max(1rem, var(--sar));
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.16);
}
