/* Shared visual architecture. Decorative layers stay inside their own panels. */
:root {
  --hud-rule: color-mix(in srgb, var(--accent) 24%, var(--line));
  --hud-etch: color-mix(in srgb, var(--accent) 36%, transparent);
  --hud-grid: color-mix(in srgb, var(--accent) 8%, transparent);
  --hud-wash: color-mix(in srgb, var(--accent) 4%, transparent);
  --hud-glow: color-mix(in srgb, var(--accent) 13%, transparent);
}

/* Each interior page opens with a quiet drafting-grid detail. */
.page-header {
  position: relative;
  isolation: isolate;
}
.page-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(37%, 350px);
  height: 195px;
  top: 36px;
  right: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hud-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 75% 25%, #000, transparent 72%);
}
.page-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 22px;
  width: 94px;
  height: 7px;
  pointer-events: none;
  background:
    linear-gradient(var(--hud-etch), var(--hud-etch)) left center / 56px 1px
      no-repeat,
    repeating-linear-gradient(90deg, var(--hud-etch) 0 1px, transparent 1px 5px)
      right center / 25px 7px no-repeat;
}
.page-header .eyebrow::before,
.profile-section-intro .section-label::before,
.project-section-heading > .eyebrow::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 8px;
  margin-right: 10px;
  vertical-align: 0;
  border-left: 2px solid var(--accent);
  border-top: 1px solid var(--hud-etch);
  border-bottom: 1px solid var(--hud-etch);
}
.section-number {
  color: var(--accent);
  padding: 3px 6px;
  border: 1px solid var(--hud-rule);
  border-radius: 3px;
  background: var(--hud-wash);
}
.profile-section-intro,
.project-section-heading,
.case-meta {
  border-color: var(--hud-rule);
}

/* Registration corners give the service and capability panels a common frame. */
.service-card,
.capability-card {
  position: relative;
  isolation: isolate;
}
.service-card::before,
.capability-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  opacity: 0.65;
  background:
    linear-gradient(var(--hud-etch), var(--hud-etch)) left top / 13px 1px
      no-repeat,
    linear-gradient(var(--hud-etch), var(--hud-etch)) left top / 1px 13px
      no-repeat,
    linear-gradient(var(--hud-etch), var(--hud-etch)) right bottom / 13px 1px
      no-repeat,
    linear-gradient(var(--hud-etch), var(--hud-etch)) right bottom / 1px 13px
      no-repeat;
}
.service-card {
  background:
    radial-gradient(ellipse at 100% 0%, var(--hud-wash), transparent 54%),
    linear-gradient(145deg, var(--bg), var(--surface));
}
.service-icon-frame {
  border-radius: 12px 12px 12px 3px;
  box-shadow: inset 0 0 0 4px var(--bg);
}
.service-number {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--hud-rule);
}
.capability-grid {
  border-color: var(--hud-rule);
  border-radius: 12px;
  box-shadow: 0 16px 48px -35px var(--hud-glow);
}
.capability-card {
  background:
    radial-gradient(ellipse at 95% 5%, var(--hud-wash), transparent 60%),
    var(--surface);
}
.capability-card:first-child {
  border-radius: 11px 0 0 11px;
}
.capability-card:last-child {
  border-radius: 0 11px 11px 0;
}
.capability-card-featured {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 8%, var(--surface)),
    var(--surface) 68%
  );
}
.capability-top .profile-index {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--hud-rule);
}
.capability-icon {
  filter: drop-shadow(0 0 10px var(--hud-glow));
}

/* The existing orbit keeps its motion; static graduations add depth. */
.capability-orbit::before,
.capability-orbit::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.capability-orbit::before {
  inset: 8%;
  background:
    linear-gradient(var(--hud-grid), var(--hud-grid)) center / 1px 100%
      no-repeat,
    linear-gradient(90deg, var(--hud-grid), var(--hud-grid)) center / 100% 1px
      no-repeat;
}
.capability-orbit::after {
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -1deg,
    var(--hud-etch) 0deg 1deg,
    transparent 1deg 10deg
  );
  mask-image: radial-gradient(
    closest-side,
    transparent calc(100% - 5px),
    #000 calc(100% - 4px) 99%,
    transparent 100%
  );
  opacity: 0.65;
}
.orbit-ring-outer {
  border-color: var(--hud-rule);
  box-shadow: 0 0 25px -13px var(--hud-glow);
}
.orbit-ring-inner {
  border-color: var(--hud-rule);
  box-shadow: inset 0 0 22px -12px var(--hud-glow);
}
.orbit-point {
  box-shadow:
    0 0 0 5px var(--hud-wash),
    0 0 14px var(--hud-glow);
}
.orbit-label {
  color: var(--accent);
}

/* Education and experience retain an editorial structure with finer framing. */
.education-degree {
  border-color: var(--hud-rule);
  border-radius: 12px;
  box-shadow: 0 20px 55px -45px var(--hud-glow);
}
.degree-visual {
  border-radius: 11px 0 0 11px;
  box-shadow: inset 0 0 0 8px var(--hud-wash);
}
.degree-content {
  position: relative;
  border-color: var(--hud-rule);
}
.degree-content::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 17px;
  width: 20px;
  height: 20px;
  border-top: 1px solid var(--hud-etch);
  border-right: 1px solid var(--hud-etch);
  pointer-events: none;
}
.degree-meta {
  border-color: var(--hud-rule);
}
.career-date::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 34px;
  height: 8px;
  opacity: 0.55;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    var(--hud-etch) 0 1px,
    transparent 1px 5px
  );
}
.career-project {
  border-radius: 9px;
  background:
    linear-gradient(110deg, var(--hud-wash), transparent 65%), var(--surface);
}
.career-project-icon,
.journey-icon {
  border-color: var(--hud-rule);
  background: var(--hud-wash);
  border-radius: 8px 8px 8px 2px;
}

/* Project imagery remains untouched, framed like a focused system view. */
.project-visual,
.case-system-figure {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 18px 60px -42px var(--hud-glow);
}
.project-visual::after,
.case-system-figure::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  opacity: 0.65;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 18px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 1px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 18px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 1px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 18px 1px
      no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1px 18px
      no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 18px 1px
      no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 1px 18px
      no-repeat;
}
.project-summary .project-small-label,
.case-meta dt {
  color: var(--accent);
}
.project-principle-list article > .project-small-label,
.case-focus-list article > .project-small-label {
  border-top: 1px solid var(--hud-rule);
}

/* The contact surface gets a small illuminated edge, not a form overlay. */
.contact-form-panel {
  position: relative;
  border-color: var(--hud-rule);
  box-shadow:
    inset 0 1px 0 var(--hud-etch),
    0 20px 65px -45px var(--hud-glow);
}
.contact-form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  width: 64px;
  height: 2px;
  pointer-events: none;
  background: var(--accent);
  box-shadow: 0 0 16px var(--hud-glow);
}
.contact-form-panel .form-heading {
  border-color: var(--hud-rule);
}
.contact-form-panel .form-heading > span {
  border-color: var(--hud-rule);
  box-shadow: 0 0 0 4px var(--hud-wash);
}
.contact-local-time {
  border-left: 2px solid var(--hud-etch);
  padding-left: 12px;
}
.contact-banner {
  border-color: var(--hud-rule);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 92% 0%, var(--hud-glow), transparent 52%),
    var(--surface);
}
.contact-banner::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  top: 18px;
  right: 18px;
  pointer-events: none;
  background:
    linear-gradient(var(--hud-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(225deg, #000, transparent 75%);
}
.site-footer {
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 3%,
    var(--hud-etch) 20%,
    var(--accent) 35%,
    var(--hud-etch) 48%,
    transparent 76%
  );
}
.footer-bottom {
  border-image: linear-gradient(
      90deg,
      var(--hud-rule),
      var(--line) 62%,
      transparent
    )
    1;
}

@media (hover: hover) {
  .service-card:hover::before,
  .capability-card:hover::before {
    opacity: 1;
  }
}
@media (max-width: 760px) {
  .capability-card:first-child {
    border-radius: 11px 11px 0 0;
  }
  .capability-card:last-child {
    border-radius: 0 0 11px 11px;
  }
}
@media (max-width: 760px) {
  .page-header::before {
    width: 170px;
    height: 140px;
    top: 26px;
    opacity: 0.65;
  }
  .page-header::after {
    bottom: 16px;
    width: 66px;
    background-size:
      32px 1px,
      20px 5px;
  }
  .profile-section-intro .section-label::before {
    content: none;
  }
  .degree-visual {
    border-radius: 11px 11px 0 0;
  }
  .career-date::after {
    content: none;
  }
  .contact-form-panel::before {
    left: 24px;
  }
  .contact-banner::before {
    width: 100px;
    height: 100px;
    opacity: 0.7;
  }
}
