/* Project Heliosphere - one-time announcement dialog (home page).
   Theme-aware through the site's CSS custom properties: paints correctly in
   both the dark default and the light theme without a single hard-coded color. */
.fdh-root {
  position: fixed; inset: 0;
  z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: color-mix(in oklab, var(--ink) 76%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
  transition: opacity .45s ease;
}
.fdh-root.is-open { opacity: 1; }
.fdh-root.is-closing { opacity: 0; transition-duration: .3s; }

.fdh-panel {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  background: var(--ink-2);
  color: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in oklab, var(--amber) 14%, transparent);
  transform: translateY(18px) scale(.985);
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fdh-root.is-open .fdh-panel { transform: none; }

/* editorial-industrial frame: ruled header with mono coordinates */
.fdh-bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 14px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.fdh-bar b { color: var(--amber); font-weight: 500; }
.fdh-close {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  margin: -6px -6px -6px 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--paper-dim);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.fdh-close:hover, .fdh-close:focus-visible {
  color: var(--paper);
  border-color: var(--line-2);
  background: var(--ink-3);
  outline: none;
}
.fdh-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* left: the heliosphere - human at the center, services in orbit */
.fdh-art {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  padding: 34px 28px 30px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 46%, var(--amber-glow) 0%, transparent 52%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px;
  background-color: var(--ink);
  overflow: hidden;
}
.fdh-art::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 46%, var(--ink) 92%);
  opacity: .9;
}
.fdh-orbit {
  position: relative; z-index: 1;
  width: min(100%, 330px);
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}
.fdh-orbit .ring { fill: none; stroke: color-mix(in oklab, var(--paper) 24%, transparent); stroke-width: 1; }
.fdh-orbit .ring.dashed { stroke-dasharray: 2 6; opacity: .9; }
.fdh-orbit .node { fill: var(--paper); }
.fdh-orbit .node.amber { fill: var(--amber); }
.fdh-orbit .node-halo { fill: none; stroke: var(--amber); stroke-width: 1; opacity: .55; }
.fdh-orbit .sun { fill: var(--amber); }
.fdh-orbit .sun-glow { fill: var(--amber); opacity: .18; }
.fdh-orbit .sun-core { fill: var(--ink); }
.fdh-orbit .label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--paper-dim);
}
.fdh-orbit .spin { transform-origin: 200px 200px; animation: fdh-spin 70s linear infinite; }
.fdh-orbit .spin.slow { animation-duration: 120s; animation-direction: reverse; }
.fdh-orbit .spin.fast { animation-duration: 46s; }
.fdh-orbit .breathe { transform-origin: 200px 200px; animation: fdh-breathe 5.5s ease-in-out infinite; }
@keyframes fdh-spin { to { transform: rotate(360deg); } }
@keyframes fdh-breathe { 0%, 100% { transform: scale(1); opacity: .16; } 50% { transform: scale(1.18); opacity: .28; } }
.fdh-caption {
  position: relative; z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
}
.fdh-caption em { font-style: normal; color: var(--amber); }

/* right: the announcement */
.fdh-body {
  display: flex; flex-direction: column; justify-content: center;
  gap: 18px;
  padding: 40px 42px 38px;
  min-width: 0;
}
.fdh-body .eyebrow { margin-bottom: 2px; }
.fdh-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: .98;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
}
.fdh-title em { font-style: italic; color: var(--paper-dim); }
.fdh-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 48ch;
  margin: 0;
}
.fdh-quote {
  margin: 4px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--amber);
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  color: var(--paper);
}
.fdh-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.fdh-actions .btn.ghost { padding-left: 16px; padding-right: 16px; }
.fdh-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mute);
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .fdh-panel { grid-template-columns: minmax(0, 1fr); }
  .fdh-art { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px 18px; gap: 12px; }
  .fdh-orbit { width: min(100%, 190px); }
  .fdh-caption, .fdh-bar-opt { display: none; }
  .fdh-body { padding: 24px 22px 24px; gap: 13px; }
  .fdh-quote { font-size: 17px; }
  .fdh-title { font-size: clamp(30px, 8.5vw, 40px); }
}
@media (max-height: 640px) and (max-width: 760px) {
  .fdh-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fdh-root, .fdh-panel { transition: none; }
  .fdh-orbit .spin, .fdh-orbit .breathe { animation: none; }
}
