/* AlienBox visual refinement / responsive foundation.
   All designs are decorative, never represent verified sighting media. */
:root { --ab-touch:44px; }
html { -webkit-text-size-adjust:100%; }
:where(img,svg,video,canvas){max-width:100%}
:where(p,h1,h2,h3,h4,li,a,td,th){overflow-wrap:break-word}
:where(button,input,select,textarea){max-width:100%}
:where(a,button,input,select,textarea,summary):focus-visible{
  outline:2px solid #80e9ff;outline-offset:3px;
}
.skip-to-content{
  position:fixed;left:12px;top:10px;z-index:200;
  transform:translateY(-150%);background:#101d17;color:#91ff9c;
  border:1px solid #91ff9c;padding:10px 14px;font:600 13px system-ui,sans-serif;
}
.skip-to-content:focus{transform:translateY(0)}
.main-content-anchor{scroll-margin-top:85px}
.mobile-site-menu{display:none}
:where(.card,.article-card,.archive-card,.source-card,.lore-card){
  isolation:isolate;
}
:where(.card,.article-card,.archive-card,.source-card,.lore-card):hover{
  box-shadow:0 12px 40px rgba(0,0,0,.28),inset 0 1px rgba(145,255,156,.045);
}
:where(.card,.article-card,.archive-card,.source-card,.lore-card):focus-within{
  border-color:#80e9ff;
}
:where(.article-body,.fred-desk-note,.ask-fred-section p){
  overflow-wrap:anywhere;
}
:where(.article-body,.article-shell,.research-body) img{
  display:block;height:auto;max-width:100%;border-radius:4px;
}
:where(.article-body,.article-shell,.research-body) table{
  display:block;overflow-x:auto;max-width:100%;
}
:where(.article-body,.article-shell) pre{
  max-width:100%;overflow-x:auto;
}
.alien-stage{isolation:isolate;background:
  radial-gradient(ellipse at 55% 48%,rgba(94,231,255,.1),transparent 42%),
  linear-gradient(145deg,rgba(156,124,255,.06),transparent 55%),
  #040807}
.alien-stage-portrait{
  position:absolute;inset:0;z-index:1;
  background-image:linear-gradient(90deg,#040807 0%,transparent 22%,transparent 72%,#040807 100%),
    linear-gradient(0deg,#040807 0%,transparent 24%,transparent 76%,#040807 100%),
    url('/images/fred/hero.webp');
  background-size:cover,cover,cover;background-position:center,center,center 33%;
  filter:saturate(.69) contrast(1.07);opacity:.78;
  mask-image:radial-gradient(ellipse 83% 89% at 50% 44%,#000 55%,transparent 100%);
}
.alien-stage:has(.alien-stage-portrait) .alien-ghost-fallback{display:none}
.alien-stage .telemetry{z-index:4;text-shadow:0 1px 5px #030605,0 0 12px #030605}
.alien-stage .scan-beam,.alien-stage .spark{z-index:3}
.alien-stage:after{z-index:5}
.ab-card-preview{transition:filter .2s ease,background-position .2s ease}
.card:hover .ab-card-preview,.archive-card:hover .ab-card-preview{
  filter:brightness(1.16);
}
.ab-card-preview-svg{max-width:none}
.fred-desk-portrait{background:
 radial-gradient(ellipse at 52% 30%,rgba(94,231,255,.07),transparent 60%),
 linear-gradient(110deg,rgba(216,170,88,.04),transparent 60%)}
.fred-desk-portrait .fred-avatar{max-width:100%}
:where(.filter-summary,.source-meta,.card-meta,.article-byline){overflow-wrap:anywhere}
/* Variations are decorative archive treatments, not case evidence. */
.lore-card:nth-child(4n+1){
 background:radial-gradient(circle at 85% 15%,rgba(156,124,255,.12),transparent 42%),linear-gradient(160deg,rgba(15,19,30,.86),rgba(6,8,11,.9));
}
.lore-card:nth-child(4n+2){
 background:radial-gradient(ellipse at 16% 70%,rgba(255,88,207,.085),transparent 45%),linear-gradient(145deg,rgba(19,12,24,.88),rgba(6,8,11,.9));
}
.lore-card:nth-child(4n+3){
 background:radial-gradient(circle at 82% 28%,rgba(94,231,255,.09),transparent 39%),linear-gradient(130deg,rgba(6,16,19,.85),rgba(6,8,11,.9));
}
.lore-card:nth-child(4n+4){
 background:radial-gradient(circle at 78% 80%,rgba(216,170,88,.09),transparent 40%),linear-gradient(160deg,rgba(19,16,9,.86),rgba(6,8,11,.9));
}
.lore-card:after{
 content:"";position:absolute;right:18px;top:15px;width:38px;height:38px;
 border:1px solid rgba(156,124,255,.16);border-radius:50%;
 box-shadow:inset 0 0 0 7px rgba(156,124,255,.015),0 0 24px rgba(94,231,255,.025);
 pointer-events:none;
}
.lore-card:nth-child(3n+2):after{border-radius:23% 77% 58% 42%;transform:rotate(28deg)}
.lore-card:nth-child(3n+3):after{border-radius:4px;transform:rotate(45deg)}
.source-card{background:linear-gradient(145deg,rgba(7,16,11,.9),rgba(5,10,14,.7));box-shadow:inset 2px 0 rgba(94,231,255,.035)}
.source-card:nth-child(even){background:linear-gradient(155deg,rgba(7,13,18,.85),rgba(8,14,10,.8));box-shadow:inset 2px 0 rgba(216,170,88,.07)}
.archive-card:nth-child(4n+2) .ab-card-preview{filter:hue-rotate(12deg)}
.archive-card:nth-child(4n+3) .ab-card-preview{filter:hue-rotate(-9deg)}
.archive-card:nth-child(4n+4) .ab-card-preview{filter:hue-rotate(24deg)}
:where(.article-card,.source-card,.lore-card){transition:border-color .2s ease,box-shadow .2s ease}
@media(max-width:1050px){
 .sitebar{gap:12px}
 .navlinks{gap:10px}
 .navlinks a{letter-spacing:.07em}
 .fred-nav-copy{display:none}
}
@media(max-width:760px){
 .wrap{width:calc(100% - 24px);padding-top:10px}
 .sitebar{
   display:grid;grid-template-columns:minmax(0,1fr) auto auto;
   gap:10px;align-items:center;padding:9px 12px;
   position:sticky;top:4px;
 }
 .sitebar .brand{min-width:0;font-size:11px;letter-spacing:.1em}
 .sitebar .brand span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .sitebar .navlinks{display:none}
 .sitebar .fred-nav-presence{padding-left:8px}
 .mobile-site-menu{display:block;grid-column:2;grid-row:1;position:relative}
 .mobile-site-menu summary{
   list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;
   min-height:var(--ab-touch);padding:0 11px;
   border:1px solid #315c35;background:rgba(7,16,11,.98);
   color:#91ff9c;font:700 11px system-ui,sans-serif;letter-spacing:.03em;
 }
 .mobile-site-menu summary::-webkit-details-marker{display:none}
 .mobile-site-menu[open] summary{border-color:#80e9ff}
 .mobile-navlinks{
   position:absolute;right:0;top:calc(100% + 8px);z-index:90;
   width:min(300px,calc(100vw - 32px));padding:7px;
   background:#08110d;border:1px solid #315c35;box-shadow:0 18px 45px #000c;
   display:grid;gap:2px;
 }
 .mobile-navlinks a{
   display:flex;align-items:center;min-height:var(--ab-touch);
   padding:9px 12px;color:#d1ded3;font:600 13px system-ui,sans-serif;
   border-left:2px solid transparent;
 }
 .mobile-navlinks a.active{color:#91ff9c;border-color:#91ff9c;background:rgba(145,255,156,.07)}
 .mobile-navlinks a:hover{background:rgba(145,255,156,.05)}
 .sitebar .fred-nav-presence{grid-column:3;grid-row:1}
 .hero{padding-top:35px}
 .hero h1{font-size:clamp(42px,12vw,68px);line-height:.91;letter-spacing:-.055em}
 .hero-copy{font-size:clamp(16px,4.5vw,20px);line-height:1.48}
 .hero-actions{gap:8px}
 .hero-actions .btn{min-height:var(--ab-touch);justify-content:center}
 .alien-stage{min-height:260px}
 .alien-stage .telemetry{font-size:7px;line-height:1.45;max-width:43%}
 .stats-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stats-strip .statbox:nth-child(odd){border-right:1px solid var(--line)}
 .stats-strip .statbox{min-width:0}
 .cards,.archive-grid,.source-grid,.lore-grid{grid-template-columns:1fr}
 .section h2,.archive-hero h1{font-size:clamp(32px,9vw,52px)}
 .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .filters .search{grid-column:1/-1}
 .filters input,.filters select,.filters button{font-size:16px;min-height:var(--ab-touch)}
 .filters button{grid-column:1/-1}
 .pagination a,.pagination span,.btn{min-height:var(--ab-touch);display:inline-flex;align-items:center}
 .fred-desk-body{padding:18px}
 .fred-desk-panel{grid-template-columns:1fr}
 .fred-desk-portrait{min-height:230px;border-right:0;border-bottom:1px solid #19351e}
 .fred-desk-panel .fred-desk-links a{min-height:var(--ab-touch);display:inline-flex;align-items:center;font-size:10px}
 .article-shell{padding-top:28px}
 .article-shell h1{font-size:clamp(36px,10vw,52px);line-height:1}
 .article-dek{font-size:17px}
 .article-body{font-size:16px;line-height:1.7}
 .article-body h2{font-size:clamp(23px,7vw,30px)}
 .article-byline{letter-spacing:normal;gap:8px}
 .ask-fred-head{grid-template-columns:auto minmax(0,1fr)}
 .ask-fred-head .fred-avatar{display:grid}
 .ask-fred-actions button{min-height:var(--ab-touch)}
}
@media(max-width:420px){
 .sitebar{gap:6px;padding:8px}
 .brand-mark{width:18px;height:23px;flex:0 0 18px}
 .sitebar .brand{font-size:10px;letter-spacing:.05em;gap:6px}
 .mobile-site-menu summary{padding:0 8px;font-size:10px}
 .fred-nav-presence .fred-avatar{--fred-avatar-size:25px!important}
 .stats-strip{grid-template-columns:1fr}
 .stats-strip .statbox{border-right:0!important}
 .filters{grid-template-columns:1fr}
 .filters .search,.filters button{grid-column:auto}
 .section-head{gap:12px}
 .hero-actions .btn{flex:1 1 100%}
 .alien-stage .telemetry.r{display:none}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* V3 editorial visual hierarchy. All pictograms here are decorative, never evidence. */
.ab-featured-editorial{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);margin:29px 0 45px;border:1px solid #385a45;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 5% 12%,rgba(94,231,255,.08),transparent 48%),linear-gradient(145deg,#0a1512,#050909 76%);box-shadow:0 20px 68px #0006}
.ab-featured-lead{padding:clamp(22px,4vw,44px);border-right:1px solid #254337;position:relative;overflow:hidden}
.ab-featured-lead:after{content:"";position:absolute;right:-70px;top:50px;width:220px;height:220px;border-radius:50%;border:1px solid rgba(94,231,255,.11);box-shadow:0 0 0 28px rgba(94,231,255,.017),0 0 0 68px rgba(145,255,156,.015);pointer-events:none}
.ab-featured-kicker{display:block;color:#80e9ff;font:700 10px/1.5 ui-monospace,monospace;letter-spacing:.13em}
.ab-featured-lead h2{position:relative;z-index:1;font:850 clamp(31px,4.5vw,55px)/.95 system-ui,sans-serif;letter-spacing:-.055em;margin:26px 0 18px}
.ab-featured-lead h2 em{font-style:normal;color:#91ff9c}
.ab-featured-lead p{position:relative;z-index:1;color:#c2d3cb;font:16px/1.65 system-ui,sans-serif;max-width:450px}
.ab-featured-lead .btn{position:relative;z-index:1;margin-top:15px}
.ab-featured-insignia{position:absolute;right:17px;top:15px;display:flex;flex-direction:column;align-items:center;gap:2px;color:#91ff9c;opacity:.33;font:800 18px system-ui,sans-serif;letter-spacing:-.05em}
.ab-featured-insignia small{font:7px ui-monospace,monospace;letter-spacing:.1em}
.ab-featured-stories{display:flex;flex-direction:column;min-width:0}
.ab-featured-story{display:flex;flex:1;flex-direction:column;gap:8px;padding:clamp(16px,2.7vw,28px);border-bottom:1px solid #254337;background:linear-gradient(90deg,rgba(145,255,156,.025),transparent 85%);transition:background .2s,border-color .2s}
.ab-featured-story:last-child{border-bottom:0}
.ab-featured-story:hover,.ab-featured-story:focus-visible{background:rgba(94,231,255,.07);border-color:#5d9179}
.ab-featured-story-index{font:700 9px ui-monospace,monospace;color:#a6b8a9;letter-spacing:.13em}
.ab-featured-story h3{font:760 clamp(20px,2.5vw,29px)/1.12 system-ui,sans-serif;letter-spacing:-.025em;margin:0;color:#eef7f0}
.ab-featured-story p{font:13px/1.52 system-ui,sans-serif;color:#b8c8c0;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ab-featured-story-footer{display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:7px;font:9px ui-monospace,monospace;color:#9cac9f}
.ab-featured-story-footer strong{color:#91ff9c;font-weight:600}
.ab-research-spotlight{margin:30px 0;display:grid;grid-template-columns:minmax(200px,.43fr) minmax(0,.57fr);border:1px solid #3b635c;background:linear-gradient(125deg,#0a1918,#080f0d);overflow:hidden;min-height:360px}
.ab-research-art{position:relative;min-height:330px;overflow:hidden;background:radial-gradient(circle at 47% 48%,rgba(94,231,255,.12),transparent 11%),repeating-linear-gradient(0deg,transparent 0 24px,rgba(94,231,255,.035) 25px,transparent 26px),repeating-linear-gradient(90deg,transparent 0 24px,rgba(94,231,255,.035) 25px,transparent 26px),radial-gradient(ellipse at 50% 50%,#10302a,#04100f 72%)}
.ab-research-art:after{content:"";position:absolute;left:50%;top:50%;width:90%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);border:1px solid rgba(94,231,255,.19);box-shadow:0 0 0 26px rgba(94,231,255,.018),0 0 0 56px rgba(94,231,255,.016)}
.ab-radar-crosshair{position:absolute;top:50%;left:50%;width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(94,231,255,.37),transparent);transform:translate(-50%,-50%)}
.ab-radar-crosshair:after{content:"";position:absolute;top:-140px;left:50%;height:280px;width:1px;background:linear-gradient(transparent,rgba(94,231,255,.37),transparent)}
.ab-radar-orbit{position:absolute;left:50%;top:50%;width:59%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;border:1px dashed rgba(145,255,156,.34)}
.ab-orbit-two{width:28%;border-color:rgba(94,231,255,.39)}
.ab-radar-pulse{position:absolute;left:52%;top:42%;width:11px;height:11px;border-radius:50%;background:#91ff9c;box-shadow:0 0 0 7px rgba(145,255,156,.14),0 0 22px #91ff9c}
.ab-research-art small{position:absolute;left:15px;bottom:15px;z-index:2;font:8px ui-monospace,monospace;color:#8ba69e;letter-spacing:.12em}
.ab-research-spotlight-copy{padding:clamp(22px,4vw,42px);display:flex;flex-direction:column;justify-content:center;gap:14px}
.ab-research-spotlight-copy h2{font:800 clamp(27px,4.5vw,48px)/1.03 system-ui,sans-serif;letter-spacing:-.045em;margin:0}
.ab-research-spotlight-copy h2 a:hover{color:#91ff9c}
.ab-research-spotlight-copy p{font:16px/1.6 system-ui,sans-serif;color:#c9d9d0;margin:0}
.ab-spotlight-meta{display:flex;flex-wrap:wrap;gap:8px 16px;color:#96a89e;font:9px ui-monospace,monospace}
.ab-research-spotlight-copy .btn{align-self:flex-start}
.ab-archive-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(230px,.8fr);gap:20px;align-items:center;overflow:hidden}
.ab-archive-copy{position:relative;z-index:2}
.ab-archive-visual{position:relative;min-height:220px;isolation:isolate;overflow:hidden;background:radial-gradient(circle at 50% 48%,rgba(94,231,255,.09),transparent 38%),linear-gradient(125deg,rgba(94,231,255,.035),rgba(145,255,156,.015));border:1px solid #28453b}
.ab-archive-visual:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 21px,rgba(94,231,255,.035) 22px,transparent 23px),repeating-linear-gradient(90deg,transparent 0 21px,rgba(94,231,255,.035) 22px,transparent 23px)}
.ab-archive-rings{position:absolute;inset:0;display:grid;place-items:center}
.ab-archive-rings i{position:absolute;border:1px solid rgba(94,231,255,.22);border-radius:50%;width:180px;height:180px}
.ab-archive-rings i:nth-child(2){width:130px;height:130px;border-style:dashed;transform:rotate(18deg)}
.ab-archive-rings i:nth-child(3){width:75px;height:75px;border-color:#3f7459}
.ab-archive-signal{position:absolute;bottom:33px;right:16px;display:flex;align-items:end;gap:6px;height:65px;opacity:.6}
.ab-archive-signal span{width:5px;height:25%;background:linear-gradient(#5ee7ff,#91ff9c)}
.ab-archive-signal span:nth-child(2),.ab-archive-signal span:nth-child(6){height:78%}
.ab-archive-signal span:nth-child(3){height:53%}.ab-archive-signal span:nth-child(4){height:95%}.ab-archive-signal span:nth-child(5){height:38%}.ab-archive-signal span:nth-child(7){height:65%}
.ab-archive-coordinates,.ab-archive-caption{position:absolute;left:14px;font:8px ui-monospace,monospace;color:#88b8af;letter-spacing:.12em}
.ab-archive-coordinates{top:13px}.ab-archive-caption{bottom:13px;color:#839b8b}
.archive-card .ab-card-preview{height:176px}
.archive-grid .card:nth-child(5n+2) .ab-card-preview{background-color:#06141a}
.archive-grid .card:nth-child(5n+3) .ab-card-preview{background-color:#131009}
.archive-grid .card:nth-child(5n+4) .ab-card-preview{background-color:#130c18}
@media(max-width:800px){
 .ab-featured-editorial{grid-template-columns:1fr}
 .ab-featured-lead{border-right:0;border-bottom:1px solid #254337}
 .ab-research-spotlight{grid-template-columns:1fr}
 .ab-research-art{min-height:190px}
 .ab-research-spotlight-copy{padding:22px}
 .ab-archive-hero{grid-template-columns:1fr}
 .ab-archive-visual{min-height:150px}
 .ab-archive-rings i{width:125px;height:125px}
 .ab-archive-rings i:nth-child(2){width:90px;height:90px}
 .ab-archive-rings i:nth-child(3){width:55px;height:55px}
}
@media(max-width:420px){
 .ab-featured-lead h2{font-size:clamp(28px,9vw,40px)}
 .ab-featured-story-footer{flex-wrap:wrap}
 .ab-research-spotlight-copy h2{font-size:29px}
 .ab-archive-visual{min-height:126px}
}

/* The Research Desk uses the existing real latest article—not generated filler. */
.research-section .article-grid .ab-research-feature-card{grid-column:1/-1;position:relative;background:radial-gradient(circle at 95% 15%,rgba(94,231,255,.11),transparent 29%),linear-gradient(110deg,rgba(10,29,25,.93),rgba(6,12,12,.9));border-color:#416d5a;min-height:235px;padding:clamp(18px,3vw,30px)}
.research-section .ab-research-feature-card h3{font-size:clamp(23px,3.5vw,36px);max-width:900px}
.research-section .ab-research-feature-card p{max-width:890px}
.ab-research-feature-label{display:inline-block;align-self:flex-start;margin:0 0 10px;color:#91ff9c;font:700 9px ui-monospace,monospace;letter-spacing:.11em}
