.applications-page {
  --app-ink: #0f2942;
  --app-body: #3a546d;
  --app-muted: #647f99;
  --app-accent: #0284c7;
  --app-warm: #e59324;
  background:
    radial-gradient(ellipse 75% 50% at 85% 0%, rgb(186 230 253 / 44%), transparent 66%),
    #f6f9fc;
  color: var(--app-ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.applications-main {
  flex: 1;
  display: flex;
  padding: 18px var(--header-gutter) 24px;
  min-height: 0;
}
.applications-main:focus { outline: none; }

.domain-stage {
  display: flex;
  gap: 14px;
  width: 100%;
  height: calc(100vh - 116px);
  height: calc(100dvh - 116px);
  min-height: 520px;
}

.domain-panel {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: #dcecf8;
  box-shadow: 0 16px 40px rgb(15 41 66 / 10%);
  transition: flex-grow 520ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 360ms ease;
}

.domain-panel[data-active] {
  flex-grow: 3.2;
  box-shadow: 0 24px 56px rgb(15 41 66 / 16%);
}

.domain-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.domain-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, center);
  filter: brightness(0.94) saturate(0.96);
  transform: scale(1.03);
  transition: filter 480ms ease, transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.domain-panel[data-active] .domain-bg img {
  filter: brightness(1.02) saturate(1.04);
  transform: scale(1);
}

.domain-meteorology .domain-bg img { --focal: 52% center; }
.domain-low-altitude .domain-bg img { --focal: 68% center; }
.domain-low-altitude[data-active] .domain-bg img { --focal: 64% center; }
.domain-energy .domain-bg img { --focal: 58% center; }
.domain-environment .domain-bg img { --focal: 50% center; }

.domain-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.domain-trigger:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: -4px;
}

.domain-card {
  width: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgb(255 255 255 / 96%);
  box-shadow: 0 12px 32px rgb(15 41 66 / 12%);
  transition: padding 380ms ease, background-color 240ms ease;
}

.domain-panel[data-active] .domain-card {
  max-width: 34rem;
  padding: 24px 28px;
  background: rgb(255 255 255 / 92%);
}

.domain-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.domain-rule {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: rgb(15 41 66 / 22%);
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1), background-color 280ms ease;
}

.domain-panel[data-active] .domain-rule {
  width: 40px;
  background: linear-gradient(90deg, var(--app-accent), var(--app-warm));
}

.domain-index {
  color: var(--app-muted);
  font: 600 0.75rem/1 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  transition: color 280ms ease;
}

.domain-panel[data-active] .domain-index {
  color: var(--app-accent);
}

.domain-head h2 {
  margin: 0;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--app-ink);
  white-space: nowrap;
  transition: font-size 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.domain-panel[data-active] .domain-head h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
}

.domain-en {
  font: 600 0.65rem/1.4 Arial, sans-serif;
  letter-spacing: 0.16em;
  color: var(--app-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.domain-panel[data-active] .domain-en {
  color: var(--app-accent);
}

.domain-detail {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition:
    grid-template-rows 400ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.domain-panel[data-active] .domain-detail {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 70ms;
}

.domain-detail-inner {
  overflow: hidden;
  min-width: 240px;
}

.domain-desc {
  margin-top: 12px;
  color: var(--app-body);
  font-size: 0.96875rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.domain-tags {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgb(15 41 66 / 10%);
  color: var(--app-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.domain-tags span {
  margin-inline: 0.45em;
  color: rgb(15 41 66 / 28%);
}

@media (max-width: 900px) {
  .applications-main {
    padding: 16px var(--gutter) 28px;
  }

  .domain-stage {
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 16px;
  }

  .domain-panel,
  .domain-panel[data-active] {
    flex: none;
    min-height: 320px;
  }

  .domain-trigger {
    min-height: 320px;
    padding: 12px;
    cursor: default;
  }

  .domain-card,
  .domain-panel[data-active] .domain-card {
    max-width: none;
    padding: 18px 20px;
  }

  .domain-rule,
  .domain-panel[data-active] .domain-rule {
    width: 32px;
    background: linear-gradient(90deg, var(--app-accent), var(--app-warm));
  }

  .domain-index { color: var(--app-accent); }

  .domain-head h2,
  .domain-panel[data-active] .domain-head h2 {
    font-size: clamp(1.5rem, 6.2vw, 1.9rem);
    white-space: normal;
  }

  .domain-detail,
  .domain-panel[data-active] .domain-detail {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .domain-detail-inner { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .domain-panel,
  .domain-bg img,
  .domain-card,
  .domain-rule,
  .domain-index,
  .domain-head h2,
  .domain-detail {
    transition: none;
  }
}
