/* Hosting announcement - one-time site-wide dialog.
   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. */
.fdhost-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;
}
.fdhost-root.is-open { opacity: 1; }
.fdhost-root.is-closing { opacity: 0; transition-duration: .3s; }

.fdhost-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  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);
}
.fdhost-root.is-open .fdhost-panel {
  transform: none;
  animation: fdhost-ring 2.2s ease-out .7s 2 both;
}
@keyframes fdhost-ring {
  0%   { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in oklab, var(--amber) 14%, transparent), 0 0 0 0 color-mix(in oklab, var(--amber) 55%, transparent); }
  70%  { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in oklab, var(--amber) 14%, transparent), 0 0 0 16px color-mix(in oklab, var(--amber) 0%, transparent); }
  100% { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in oklab, var(--amber) 14%, transparent), 0 0 0 16px color-mix(in oklab, var(--amber) 0%, transparent); }
}

/* editorial-industrial frame: ruled header with mono coordinates */
.fdhost-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);
}
.fdhost-bar b { color: var(--amber); font-weight: 500; }
.fdhost-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;
}
.fdhost-close:hover, .fdhost-close:focus-visible {
  color: var(--paper);
  border-color: var(--line-2);
  background: var(--ink-3);
  outline: none;
}
.fdhost-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* left: the rack - built and run in-house */
.fdhost-art {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  padding: 30px 28px 28px;
  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;
}
.fdhost-art::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 46%, var(--ink) 92%);
  opacity: .9;
}
.fdhost-rack {
  position: relative; z-index: 1;
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}
.fdhost-rack .frame { fill: none; stroke: color-mix(in oklab, var(--paper) 24%, transparent); stroke-width: 1; }
.fdhost-rack .unit { fill: none; stroke: color-mix(in oklab, var(--paper) 24%, transparent); stroke-width: 1; }
.fdhost-rack .vent { stroke: color-mix(in oklab, var(--paper) 24%, transparent); stroke-width: 1; }
.fdhost-rack .uplink { fill: none; stroke: color-mix(in oklab, var(--paper) 24%, transparent); stroke-width: 1; }
.fdhost-rack .led { fill: var(--paper); }
.fdhost-rack .led.amber { fill: var(--amber); animation: fdhost-blink 3.6s ease-in-out infinite; }
.fdhost-rack .node { fill: var(--paper); }
.fdhost-rack .node.amber { fill: var(--amber); }
.fdhost-rack .node-halo { fill: none; stroke: var(--amber); stroke-width: 1; opacity: .55; }
.fdhost-rack .label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--paper-dim);
}
@keyframes fdhost-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.fdhost-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;
}
.fdhost-caption em { font-style: normal; color: var(--amber); }

/* right: the announcement */
.fdhost-body {
  display: flex; flex-direction: column; justify-content: center;
  gap: 18px;
  padding: 52px 54px 48px;
  min-width: 0;
}
.fdhost-body .eyebrow { margin-bottom: 2px; }
.fdhost-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: .98;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
}
.fdhost-title em { font-style: italic; color: var(--paper-dim); }
.fdhost-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 52ch;
  margin: 0;
}
.fdhost-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);
}
.fdhost-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.fdhost-actions .btn.ghost { padding-left: 16px; padding-right: 16px; }
.fdhost-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mute);
  margin: 4px 0 0;
}

/* short desktop viewports (1366x768 laptops): tighten so the panel never scrolls */
@media (min-width: 761px) and (max-height: 820px) {
  .fdhost-body { padding: 34px 48px 30px; gap: 14px; }
  .fdhost-title { font-size: clamp(40px, 4.6vw, 58px); }
  .fdhost-art { padding: 20px 24px 20px; }
  .fdhost-rack { width: min(100%, 300px); }
}

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