/* One optical scene behind the three material planes. Every tint comes from the palette. */
:root {
  --glass-scene-spark: rgb(255 255 255 / 54%);
}
:root[data-palette-mode="dark"] { --glass-scene-spark: rgb(255 255 255 / 12%); }
.glass-atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 4% 8%,color-mix(in srgb,var(--accent) 25%,transparent),transparent 51%),
    radial-gradient(ellipse at 92% 65%,color-mix(in srgb,var(--accent) 18%,transparent),transparent 46%),
    radial-gradient(ellipse at 48% 110%,var(--glass-scene-spark),transparent 57%),
    var(--page);
}
.atmosphere-orbit {
  position: absolute;
  display: block;
  width: clamp(520px,81vw,1250px);
  height: clamp(420px,65vw,1000px);
  border: clamp(30px,5.3vw,82px) solid color-mix(in srgb,var(--accent) 23%,rgb(255 255 255 / 68%));
  border-top-color: color-mix(in srgb,var(--accent) 10%,rgb(255 255 255 / 88%));
  border-right-color: color-mix(in srgb,var(--accent) 34%,rgb(255 255 255 / 40%));
  border-radius: 50%;
  box-shadow:
    inset 2px 3px 2px rgb(255 255 255 / 78%),
    inset -4px -8px 15px color-mix(in srgb,var(--accent) 22%,transparent),
    2px 2px 1px rgb(255 255 255 / 62%),
    9px 18px 35px color-mix(in srgb,var(--accent) 16%,transparent);
  opacity: .76;
}
.atmosphere-orbit--a { top: -36%; right: -24%; transform: rotate(-24deg); }
.atmosphere-orbit--b { left: -49%; bottom: -68%; transform: rotate(24deg); opacity: .56; }
.atmosphere-prism {
  position: absolute;
  right: 7%;
  bottom: -20%;
  display: block;
  width: 33vw;
  height: 73vh;
  border: 1px solid rgb(255 255 255 / 67%);
  border-right: 8px solid color-mix(in srgb,var(--accent) 22%,rgb(255 255 255 / 43%));
  border-radius: 90px;
  background:
    linear-gradient(110deg,rgb(255 255 255 / 33%),transparent 32%,color-mix(in srgb,var(--accent) 14%,transparent) 61%,rgb(255 255 255 / 44%));
  box-shadow: inset 3px 2px 3px rgb(255 255 255 / 62%),inset -10px 0 20px color-mix(in srgb,var(--accent) 15%,transparent),12px 14px 34px color-mix(in srgb,var(--accent) 13%,transparent);
  transform: rotate(29deg);
  opacity: .74;
}
.module-flow,.site-footer { position: relative; z-index: 1; }
.site-header {
  background: color-mix(in srgb,var(--page) 58%,transparent);
  border-bottom-color: color-mix(in srgb,var(--line) 42%,rgb(255 255 255 / 68%));
  box-shadow: 0 1px 0 rgb(255 255 255 / 28%);
}

/* Glass slabs: visible thickness, a low-contrast reflection, and a physical lower edge. */
.experience-module {
  --glass-plane: color-mix(in srgb,var(--section-light) 74%,transparent);
  --glass-face-reflection: rgb(255 255 255 / 38%);
  --glass-face-streak: rgb(255 255 255 / 18%);
  --glass-edge: color-mix(in srgb,var(--accent) 25%,rgb(255 255 255 / 90%));
}
:root[data-palette-mode="dark"] .experience-module.block-light {
  --glass-plane: color-mix(in srgb,var(--section-light) 88%,transparent);
}
.experience-module.block-dark {
  --glass-plane: color-mix(in srgb,var(--section-dark) 87%,transparent);
  --glass-face-reflection: rgb(255 255 255 / 9%);
  --glass-face-streak: rgb(255 255 255 / 5%);
  --glass-edge: color-mix(in srgb,var(--accent) 25%,rgb(255 255 255 / 58%));
}
.hero.experience-module,.module-diagnostic.experience-module,.module-capabilities.experience-module {
  border: 1px solid var(--glass-edge);
  border-top-color: rgb(255 255 255 / 91%);
  border-bottom-color: color-mix(in srgb,var(--accent) 27%,var(--line-strong));
  background:
    radial-gradient(ellipse at var(--glass-x,22%) var(--glass-y,8%),var(--glass-face-reflection),transparent 62%),
    linear-gradient(116deg,transparent 28%,var(--glass-face-streak) 35%,transparent 43%,transparent 74%,var(--glass-face-streak) 91%,transparent),
    radial-gradient(ellipse at 70% 112%,color-mix(in srgb,var(--accent) 15%,transparent),transparent 59%),
    var(--glass-plane);
  box-shadow:
    inset 0 2px 1px rgb(255 255 255 / 76%),
    inset 2px 0 2px rgb(255 255 255 / 29%),
    inset -2px 0 2px rgb(255 255 255 / 42%),
    inset 0 -3px 2px color-mix(in srgb,var(--accent) 17%,transparent),
    0 4px 0 color-mix(in srgb,var(--line-strong) 37%,transparent),
    0 8px 1px color-mix(in srgb,var(--page) 24%,transparent),
    0 24px 48px var(--shadow),
    0 38px 50px color-mix(in srgb,var(--accent) 9%,transparent);
}
.experience-module::before {
  position: absolute;
  z-index: 0;
  inset: 4px;
  border-radius: inherit;
  background-image: url('assets/glass-grain.svg');
  background-size: 180px 180px;
  opacity: .055;
  pointer-events: none;
  content: '';
}
.experience-module::after {
  position: absolute;
  z-index: 0;
  inset: 5px 6px 6px;
  border: 1px solid rgb(255 255 255 / 26%);
  border-top-color: rgb(255 255 255 / 75%);
  border-right-color: rgb(255 255 255 / 45%);
  border-bottom-color: color-mix(in srgb,var(--accent) 13%,transparent);
  border-radius: calc(32px - 5px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 27%);
  pointer-events: none;
  content: '';
}
.experience-module > * { position: relative; z-index: 1; }
.hero .hero-art::before {
  inset: auto 7% 7%;
  height: 15%;
  border: 1px solid color-mix(in srgb,var(--accent) 15%,rgb(255 255 255 / 77%));
  border-bottom: 4px solid color-mix(in srgb,var(--accent) 20%,rgb(255 255 255 / 50%));
  border-radius: 50%;
  background: linear-gradient(174deg,rgb(255 255 255 / 43%),color-mix(in srgb,var(--surface) 35%,transparent),color-mix(in srgb,var(--accent) 15%,transparent));
  box-shadow: inset 0 2px 2px rgb(255 255 255 / 85%),0 10px 22px color-mix(in srgb,var(--accent) 15%,transparent);
  transform: perspective(450px) rotateX(64deg);
}

/* The inner panels are individual panes, rather than opaque boxes on a glass page. */
.module-diagnostic #diagnostic-app,.services .service-workbench,.nexus-close,.diagnostic-opportunity-primary,.appearance-panel,.dialog {
  border-color: color-mix(in srgb,var(--accent) 22%,rgb(255 255 255 / 65%));
  border-top-color: rgb(255 255 255 / 77%);
  background:
    linear-gradient(131deg,rgb(255 255 255 / 15%),transparent 36%,transparent 78%,rgb(255 255 255 / 5%)),
    radial-gradient(ellipse at 85% 112%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 61%),
    color-mix(in srgb,var(--surface) 65%,transparent);
  box-shadow:
    inset 0 2px 1px rgb(255 255 255 / 38%),
    inset 2px 0 1px rgb(255 255 255 / 17%),
    inset -2px 0 1px rgb(255 255 255 / 26%),
    inset 0 -3px 2px color-mix(in srgb,var(--accent) 15%,transparent),
    0 3px 0 color-mix(in srgb,var(--line-strong) 26%,transparent),
    0 12px 24px rgb(0 0 0 / 13%);
}
.block-dark #diagnostic-app,.block-dark .nexus-close,.block-dark .diagnostic-opportunity-primary {
  background:
    linear-gradient(131deg,rgb(255 255 255 / 8%),transparent 34%,transparent 78%,rgb(255 255 255 / 3%)),
    radial-gradient(ellipse at 85% 112%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 61%),
    color-mix(in srgb,var(--surface) 72%,transparent);
}
.appearance-panel,.dialog { background-color: color-mix(in srgb,var(--surface) 93%,transparent); }
.services .service-tabs {
  border-right-color: color-mix(in srgb,var(--line) 44%,rgb(255 255 255 / 45%));
  background: linear-gradient(90deg,rgb(255 255 255 / 14%),transparent 80%),color-mix(in srgb,var(--surface-tabs) 42%,transparent);
  box-shadow: inset -1px 0 0 rgb(255 255 255 / 48%);
}
.services .service-panel {
  background: radial-gradient(ellipse at 80% 6%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 65%);
  box-shadow: inset 1px 1px 0 rgb(255 255 255 / 30%);
}
.capability-animation {
  border: 1px solid color-mix(in srgb,var(--accent) 22%,rgb(255 255 255 / 71%));
  background:
    linear-gradient(140deg,rgb(255 255 255 / 38%),transparent 38%,rgb(255 255 255 / 13%) 92%),
    radial-gradient(ellipse at 55% 106%,color-mix(in srgb,var(--accent) 16%,transparent),transparent 68%),
    color-mix(in srgb,var(--surface) 48%,transparent);
  box-shadow: inset 0 2px 1px rgb(255 255 255 / 72%),inset 2px 0 1px rgb(255 255 255 / 24%),inset 0 -2px 2px color-mix(in srgb,var(--accent) 20%,transparent),0 4px 0 color-mix(in srgb,var(--line) 24%,transparent),0 10px 21px rgb(0 0 0 / 8%);
}
.capability-words { margin-top: 13px; }
.cap-box,.cap-shield { fill: var(--cap-glass-fill,var(--surface-raised)); stroke: var(--cap-glass-rim,var(--line-strong)); filter: drop-shadow(0 3px 2px rgb(0 0 0 / 12%)); }
.cap-fill { fill: var(--cap-glass-bar,var(--accent)); }
.capability-words li { padding-block: 6px; border-top: 1px solid rgb(255 255 255 / 62%); border-bottom: 1px solid color-mix(in srgb,var(--line) 50%,transparent); }
.diagnostic-progress progress { height: 7px; border: 1px solid rgb(255 255 255 / 19%); background: rgb(0 0 0 / 19%); box-shadow: inset 0 1px 3px rgb(0 0 0 / 38%),0 1px 0 rgb(255 255 255 / 10%); }
.diagnostic-progress progress::-webkit-progress-bar { background: rgb(0 0 0 / 16%); }
.diagnostic-progress progress::-webkit-progress-value { background: linear-gradient(180deg,color-mix(in srgb,var(--accent) 55%,#fff),var(--accent)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 65%); }
.diagnostic-progress progress::-moz-progress-bar { background: linear-gradient(180deg,color-mix(in srgb,var(--accent) 55%,#fff),var(--accent)); }
.diagnostic-detail {
  margin-top: 10px;
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb,var(--line-strong) 55%,rgb(255 255 255 / 21%));
  border-top-color: rgb(255 255 255 / 30%);
  border-radius: 16px;
  background: linear-gradient(160deg,rgb(255 255 255 / 5%),transparent 55%),color-mix(in srgb,var(--surface) 42%,transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%),inset 0 -1px 0 color-mix(in srgb,var(--accent) 12%,transparent),0 3px 6px rgb(0 0 0 / 5%);
}
.diagnostic-detail[open] { padding-bottom: 20px; }
.diagnostic-profile > div,.diagnostic-answer-groups dl > div { padding-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / 9%); }
.diagnostic-dependencies { border-top-color: rgb(255 255 255 / 15%); }
.service-extras { border-top-color: color-mix(in srgb,var(--line) 60%,rgb(255 255 255 / 80%)); }
.service-more { border-bottom-color: color-mix(in srgb,var(--line) 65%,transparent); box-shadow: 0 1px 0 rgb(255 255 255 / 49%); }
.service-more > summary { padding-inline: 10px; border-radius: 12px; background: linear-gradient(110deg,rgb(255 255 255 / 12%),transparent 60%); }
.service-more > summary:hover { background: linear-gradient(110deg,rgb(255 255 255 / 28%),transparent 60%); }
.service-more[open] > .module-details-content { padding-inline: 10px; }
.credential { border-top-color: color-mix(in srgb,var(--line) 65%,rgb(255 255 255 / 70%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%); }
.service-contact { background: radial-gradient(ellipse at 92% 100%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 62%); }
.site-footer { background: linear-gradient(180deg,rgb(255 255 255 / 7%),transparent 70%); }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%); }
  .experience-module { -webkit-backdrop-filter: blur(24px) saturate(135%); backdrop-filter: blur(24px) saturate(135%); }
  .module-diagnostic #diagnostic-app,.services .service-workbench,.nexus-close,.diagnostic-opportunity-primary { -webkit-backdrop-filter: blur(8px) saturate(125%); backdrop-filter: blur(8px) saturate(125%); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .experience-module.block-light,.experience-module.block-dark,:root[data-palette-mode="dark"] .experience-module.block-light { --glass-plane: color-mix(in srgb,var(--surface-section) 94%,transparent); }
}
@supports not (color: color-mix(in srgb,#000 50%,#fff)) {
  .glass-atmosphere { display: none; }
  .site-header { background: var(--page); }
  .hero.experience-module,.module-diagnostic.experience-module,.module-capabilities.experience-module { border-color: var(--line-strong); background: var(--surface-section); box-shadow: inset 0 2px 1px rgb(255 255 255 / 60%),inset 0 -3px 2px rgb(0 0 0 / 15%),0 5px 0 var(--line-soft),0 24px 48px var(--shadow); }
  .module-diagnostic #diagnostic-app,.services .service-workbench,.nexus-close,.diagnostic-opportunity-primary,.appearance-panel,.dialog,.services .service-tabs,.services .service-panel,.capability-animation,.diagnostic-detail { background: var(--surface); border-color: var(--line-strong); }
  .experience-module::after { border-bottom-color: var(--line); }
  .hero .hero-art::before { border-color: var(--line); background: var(--surface); box-shadow: 0 6px 20px var(--shadow); }
}
@media (max-width: 760px) {
  .atmosphere-orbit { opacity: .48; }
  .atmosphere-orbit--a { right: -125%; top: -15%; }
  .atmosphere-orbit--b { left: -140%; bottom: -32%; }
  .atmosphere-prism { width: 64vw; right: -18%; bottom: -14%; opacity: .48; }
  .experience-module::after { border-radius: 19px; }
  .hero.experience-module,.module-diagnostic.experience-module,.module-capabilities.experience-module { box-shadow: inset 0 2px 1px rgb(255 255 255 / 70%),inset 1px 0 1px rgb(255 255 255 / 29%),inset 0 -3px 2px color-mix(in srgb,var(--accent) 16%,transparent),0 4px 0 color-mix(in srgb,var(--line-strong) 30%,transparent),0 17px 29px var(--shadow); }
  .experience-module { -webkit-backdrop-filter: blur(15px) saturate(125%); backdrop-filter: blur(15px) saturate(125%); }
  .module-diagnostic #diagnostic-app,.services .service-workbench,.nexus-close,.diagnostic-opportunity-primary { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .service-more > summary { padding-inline: 0; }
  .service-more[open] > .module-details-content { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { .glass-atmosphere * { animation: none; } }
@media (max-width: 480px) { .experience-module::after { border-radius: 17px; } }
.motion-paused .glass-atmosphere * { animation-play-state: paused; }
@media (forced-colors: active) {
  .glass-atmosphere,.experience-module::before,.experience-module::after { display: none; }
  .experience-module,.module-diagnostic #diagnostic-app,.services .service-workbench,.nexus-close,.diagnostic-opportunity-primary,.diagnostic-detail { color: CanvasText; border-color: CanvasText; background: Canvas; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print {
  .glass-atmosphere,.experience-module::before,.experience-module::after { display: none; }
  .site-header,.experience-module,.module-diagnostic #diagnostic-app,.services .service-workbench,.services .service-tabs,.services .service-panel,.nexus-close,.diagnostic-opportunity-primary,.diagnostic-detail,.capability-animation { background: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
