/* Visual-only enhancement layer */
body {
  background:
    linear-gradient(rgba(27, 62, 91, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 62, 91, .025) 1px, transparent 1px),
    #f7f9fb;
  background-size: 44px 44px;
}

main > section {
  position: relative;
}

main > section:not(.hero):not(.subhero)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(47, 80, 107, .18), transparent);
}

.hero::before,
.subhero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .16;
  background-image:
    radial-gradient(circle at 15% 20%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 80% 35%, #fff 0 1px, transparent 2px),
    linear-gradient(120deg, transparent 46%, rgba(255,255,255,.12) 47%, transparent 48%);
  background-size: 110px 110px, 170px 170px, 100% 100%;
  pointer-events: none;
}

.hero-grid,
.subhero .wrap {
  position: relative;
  z-index: 2;
}

.hero-photo,
.visual-break,
.media-grid > img,
.platform-visual img,
.device-stage {
  position: relative;
  isolation: isolate;
}

.hero-photo::after,
.media-grid::after,
.device-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(242, 138, 25, .42);
  pointer-events: none;
}

.hero-photo::after {
  right: -20px;
  bottom: -20px;
  border-top: 0;
  border-left: 0;
}

.media-grid::after {
  top: -22px;
  left: -22px;
  border-right: 0;
  border-bottom: 0;
}

.device-stage::after {
  right: -18px;
  bottom: -18px;
  border-top: 0;
  border-left: 0;
}

.service-list a,
.service-detail article,
.managed-points article,
.timeline article,
.contact-line {
  transition: transform .24s ease, background-color .24s ease, border-color .24s ease;
}

.service-list a:hover,
.service-detail article:hover,
.timeline article:hover {
  transform: translateX(8px);
  background: rgba(255,255,255,.72);
  border-color: rgba(242, 138, 25, .38);
}

.feature-grid article {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-grid article::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(242, 138, 25, .08);
}

.feature-grid article:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 45px rgba(30, 67, 98, .13);
}

.principles article,
.context-grid article {
  transition: background-color .25s ease, transform .25s ease;
}

.principles article:hover,
.context-grid article:hover {
  transform: translateY(-4px);
  background: #fff9f1;
}

.process-panel {
  box-shadow: 0 24px 55px rgba(29, 66, 97, .09);
}

.process-tabs button {
  position: relative;
  overflow: hidden;
}

.process-tabs button::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(242, 138, 25, .08);
}

.scenario-grid article {
  transition: transform .28s ease, box-shadow .28s ease;
}

.scenario-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(25, 63, 94, .15);
}

.form-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 65px rgba(27, 61, 89, .12);
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0b5da8, #718090, #f28a19);
}

.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 620px) {
  main > section:not(.hero):not(.subhero)::before {
    width: calc(100% - 30px);
  }

  .hero-photo::after,
  .media-grid::after,
  .device-stage::after {
    display: none;
  }
}
