.subpage-body {
  background:
    radial-gradient(circle at 78% 18%, var(--site-glow-blue), transparent 30rem),
    radial-gradient(circle at 15% 70%, rgba(164, 124, 255, 0.04), transparent 34rem),
    var(--site-background);
}

.subpage-main {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  overflow: hidden;
}

.subpage-shell {
  width: min(1180px, calc(100vw - 72px));
  margin-inline: auto;
}

.subpage-hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: center;
}

.subpage-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(58, 105, 158, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 105, 158, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 72%, transparent);
}

.subpage-hero__layout {
  position: relative;
  z-index: 1;
  padding: 96px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(52px, 8vw, 110px);
}

.subpage-kicker {
  margin: 0 0 22px;
  color: #55c6c0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.subpage-copy h1 {
  max-width: 11em;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.subpage-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, #4bc8bd, #4e9ee9 56%, #8b68ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.subpage-lead {
  max-width: 42rem;
  margin: 28px 0 0;
  color: rgba(226, 234, 247, 0.67);
  font-size: 16px;
  line-height: 1.9;
}

.subpage-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.subpage-button {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(88, 199, 190, 0.72);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(110deg, rgba(12, 136, 128, 0.86), rgba(50, 89, 203, 0.88));
  box-shadow: 0 14px 34px rgba(9, 96, 126, 0.2);
  transition: transform 180ms ease, filter 180ms ease;
}

.subpage-button--quiet {
  border-color: rgba(169, 184, 226, 0.32);
  background: rgba(7, 18, 45, 0.52);
  box-shadow: none;
}

.subpage-card {
  position: relative;
  min-height: 330px;
  padding: 38px;
  border: 1px solid rgba(100, 154, 211, 0.38);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(76, 111, 239, 0.22), transparent 18rem),
    linear-gradient(145deg, rgba(9, 26, 52, 0.92), rgba(4, 13, 34, 0.94));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.subpage-card::after {
  position: absolute;
  right: -76px;
  bottom: -92px;
  width: 230px;
  aspect-ratio: 1;
  border: 1px solid rgba(70, 201, 191, 0.22);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 32px rgba(67, 130, 210, 0.04),
    0 0 0 68px rgba(91, 85, 231, 0.025);
}

.subpage-card__label {
  position: relative;
  z-index: 1;
  color: rgba(106, 212, 204, 0.78);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.subpage-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.35;
}

.subpage-card p {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: rgba(219, 229, 244, 0.58);
  line-height: 1.8;
}

.subpage-section {
  position: relative;
  padding: 72px 0 100px;
}

.subpage-heading {
  margin-bottom: 34px;
}

.subpage-heading p {
  margin: 0 0 10px;
  color: #55c6c0;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.subpage-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
}

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

.direction-card {
  min-height: 230px;
  padding: 28px 24px;
  border: 1px solid rgba(112, 148, 208, 0.3);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(8, 24, 49, 0.82), rgba(4, 12, 32, 0.9));
}

.direction-card span {
  color: rgba(83, 199, 190, 0.78);
  font-size: 12px;
}

.direction-card h3 {
  margin: 52px 0 0;
  color: #fff;
  font-size: 21px;
  font-weight: 400;
}

.direction-card p {
  margin: 12px 0 0;
  color: rgba(215, 226, 242, 0.54);
  font-size: 13px;
  line-height: 1.75;
}

.contact-detail {
  display: grid;
  gap: 16px;
}

.contact-detail__item {
  padding: 25px 28px;
  border: 1px solid rgba(104, 154, 207, 0.3);
  border-radius: 15px;
  display: grid;
  gap: 8px;
  background: rgba(5, 18, 42, 0.72);
}

.contact-detail__item span {
  color: rgba(105, 207, 199, 0.76);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.contact-detail__item strong,
.contact-detail__item a {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
}

.about-panel {
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid rgba(104, 154, 207, 0.28);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 56px;
  background: linear-gradient(135deg, rgba(8, 24, 48, 0.84), rgba(4, 13, 33, 0.9));
}

.about-panel h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
}

.about-panel p {
  margin: 0;
  color: rgba(219, 229, 244, 0.62);
  line-height: 2;
}

.subpage-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #040b1c;
}

.subpage-footer__inner {
  min-height: 150px;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.subpage-footer img {
  display: block;
  width: 190px;
  height: auto;
}

.subpage-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  color: rgba(220, 229, 244, 0.62);
  font-size: 13px;
}

[data-subpage-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-subpage-reveal][data-reveal-direction="up"]:not(.is-visible) {
  transform: translateY(-14px);
}

[data-subpage-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition-duration: 420ms, 560ms;
}

@media (hover: hover) and (pointer: fine) {
  .subpage-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
  }

  .contact-detail__item a:hover,
  .subpage-footer a:hover {
    color: #61d0c7;
  }
}

@media (max-width: 920px) {
  .subpage-hero__layout {
    grid-template-columns: 1fr;
  }

  .subpage-card {
    min-height: 260px;
  }

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

@media (max-width: 828px) {
  .subpage-shell {
    width: min(100% - 48px, 1180px);
  }

  .subpage-hero__layout {
    padding: 70px 0 64px;
    gap: 38px;
  }

  .subpage-copy h1 {
    font-size: clamp(38px, 9vw, 58px);
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .subpage-shell {
    width: min(100% - 28px, 1180px);
  }

  .subpage-copy h1 {
    font-size: 36px;
  }

  .subpage-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .subpage-button {
    width: 100%;
  }

  .subpage-card {
    min-height: 270px;
    padding: 28px;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 190px;
  }

  .direction-card h3 {
    margin-top: 34px;
  }

  .subpage-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .subpage-footer__links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-subpage-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
